Skip to content

Commit 42b6da3

Browse files
committed
Made dataloader branchable
1 parent eb1e244 commit 42b6da3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GreenDonut/src/Core/Data/QueryDataLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public QueryDataLoader(
2323

2424
protected override bool AllowCachePropagation => false;
2525

26-
protected override bool AllowBranching => false;
26+
protected override bool AllowBranching => true;
2727

2828
protected internal override ValueTask FetchAsync(
2929
IReadOnlyList<TKey> keys,

src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/__snapshots__/DataLoaderTests.Filter_With_Filtering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
```text
66
.param set @__keys_0 '[1]'
7-
.param set @__p_1_rewritten 'Product%'
7+
.param set @__p_1_startswith 'Product%'
88
99
SELECT "p"."Id", "p"."AvailableStock", "p"."BrandId", "p"."Description", "p"."ImageFileName", "p"."MaxStockThreshold", "p"."Name", "p"."OnReorder", "p"."Price", "p"."RestockThreshold", "p"."TypeId"
1010
FROM "Products" AS "p"
1111
WHERE "p"."BrandId" IN (
1212
SELECT "k"."value"
1313
FROM json_each(@__keys_0) AS "k"
14-
) AND "p"."Name" LIKE @__p_1_rewritten ESCAPE '\'
14+
) AND "p"."Name" LIKE @__p_1_startswith ESCAPE '\'
1515
```
1616

1717
## Result

0 commit comments

Comments
 (0)