Skip to content

Commit 2ecc03f

Browse files
committed
Connection_parent_child_Filtered is now working
1 parent 7afd6dc commit 2ecc03f

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
target:
3+
{
4+
"data": {
5+
"parentEntitiesConnectionFiltered": {
6+
"totalCount": 1,
7+
"edges": [
8+
{
9+
"cursor": "0",
10+
"node": {
11+
"property": "Value1",
12+
"children": [
13+
{
14+
"property": "Value3"
15+
}
16+
]
17+
}
18+
}
19+
],
20+
"items": [
21+
{
22+
"property": "Value1",
23+
"children": [
24+
{
25+
"property": "Value3"
26+
}
27+
]
28+
}
29+
]
30+
}
31+
}
32+
},
33+
sql: [
34+
{
35+
Text:
36+
select COUNT(*)
37+
from FilterParentEntities as f
38+
},
39+
{
40+
Text:
41+
select f1.Id,
42+
f1.Property,
43+
f0.Id,
44+
f0.ParentId,
45+
f0.Property
46+
from (select f.Id,
47+
f.Property
48+
from FilterParentEntities as f
49+
order by f.Id
50+
offset @__p_0 rows fetch next @__p_1 rows only) as f1
51+
left outer join
52+
FilterChildEntities as f0
53+
on f1.Id = f0.ParentId
54+
order by f1.Id,
55+
Parameters: {
56+
@__p_0: 0,
57+
@__p_1: 10
58+
}
59+
}
60+
]
61+
}

src/Tests/IntegrationTests/IntegrationTests_filtered.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public async Task Root_connectionFiltered()
104104
await RunQuery(database, query, null, BuildFilters(), false, [entity1, entity2]);
105105
}
106106

107-
[Fact(Skip = "Work out why include is not used")]
107+
[Fact]
108108
public async Task Connection_parent_child_Filtered()
109109
{
110110
var query =

0 commit comments

Comments
 (0)