Skip to content

Commit ced7c2d

Browse files
committed
.
1 parent 062d8ba commit ced7c2d

4 files changed

Lines changed: 26 additions & 2 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
target:
3+
{
4+
"data": {
5+
"baseEntities": [
6+
{
7+
"property": "Value1"
8+
},
9+
{
10+
"property": "Value2"
11+
}
12+
]
13+
}
14+
},
15+
sql: {
16+
Text:
17+
select b.Id,
18+
b.Discriminator,
19+
b.Property
20+
from BaseEntities as b
21+
order by b.Property
22+
}
23+
}

src/Tests/IntegrationTests/IntegrationTests.SchemaPrint.verified.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
where: [WhereExpression!],
7171
orderBy: [OrderBy!],
7272
ids: [ID!]): BaseConnection!
73+
baseEntities(id: ID, ids: [ID!], where: [WhereExpression!], orderBy: [OrderBy!], skip: Int, take: Int): [BaseEntity]!
7374
manyToManyLeftEntities(id: ID, ids: [ID!], where: [WhereExpression!], orderBy: [OrderBy!], skip: Int, take: Int): [ManyToManyLeft!]!
7475
manyToManyRightEntities(id: ID, ids: [ID!], where: [WhereExpression!], orderBy: [OrderBy!], skip: Int, take: Int): [ManyToManyRight!]!
7576
parentEntityViews(where: [WhereExpression!], orderBy: [OrderBy!], skip: Int, take: Int): [ParentEntityView!]!

src/Tests/IntegrationTests/IntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,7 @@ public async Task Query_abstract_entity()
27562756
var query =
27572757
"""
27582758
{
2759-
baseEntities {
2759+
baseEntities(orderBy: {path: "property"}) {
27602760
property
27612761
}
27622762
}

src/Tests/IntegrationTests/Query.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public Query(IEfGraphQLService<IntegrationDbContext> efGraphQlService)
139139

140140
AddQueryField(
141141
name: "baseEntities",
142-
graphType: typeof(ListGraphType<BaseGraphType>),
142+
graphType: typeof(BaseGraphType),
143143
resolve: _ => _.DbContext.BaseEntities);
144144

145145
AddQueryField(

0 commit comments

Comments
 (0)