-
-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8631e30
commit 41f2efb
Showing
13 changed files
with
710 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...bleDataLoaderTests.Brand_Details_Requires_Brand_Name_With_Proper_Type_NET7_0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Brand_Details_Requires_Brand_Name_With_Proper_Type | ||
|
||
## SQL | ||
|
||
```text | ||
SELECT b."Name", b."Id" | ||
FROM "Brands" AS b | ||
WHERE b."Id" = 1 | ||
``` | ||
|
||
## Result | ||
|
||
```json | ||
{ | ||
"data": { | ||
"brandById": { | ||
"details": "Brand Name:Brand0" | ||
} | ||
} | ||
} | ||
``` | ||
|
22 changes: 22 additions & 0 deletions
22
...nd_Details_Requires_Brand_Name_With_Proper_Type_With_Explicit_Generic_NET7_0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Brand_Details_Requires_Brand_Name_With_Proper_Type_With_Explicit_Generic | ||
|
||
## SQL | ||
|
||
```text | ||
SELECT b."Name", b."Id" | ||
FROM "Brands" AS b | ||
WHERE b."Id" = 1 | ||
``` | ||
|
||
## Result | ||
|
||
```json | ||
{ | ||
"data": { | ||
"brandById": { | ||
"details": "Brand Name:Brand0" | ||
} | ||
} | ||
} | ||
``` | ||
|
22 changes: 22 additions & 0 deletions
22
...apshots__/ProjectableDataLoaderTests.Brand_With_Name_Selector_is_Null_NET7_0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Brand_With_Name_Selector_is_Null | ||
|
||
## SQL | ||
|
||
```text | ||
SELECT b."Id", b."DisplayName", b."Name", b."Details_Country_Name" | ||
FROM "Brands" AS b | ||
WHERE b."Id" = 1 | ||
``` | ||
|
||
## Result | ||
|
||
```json | ||
{ | ||
"data": { | ||
"brandByIdSelectorNull": { | ||
"name": "Brand0" | ||
} | ||
} | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 147 additions & 0 deletions
147
...rk.Tests/__snapshots__/InterfaceIntegrationTests.Query_Owner_Animals_NET_6_0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
# Query_Owner_Animals | ||
|
||
## SQL 0 | ||
|
||
```sql | ||
SELECT o."Id", o."Name" | ||
FROM "Owners" AS o | ||
ORDER BY o."Name", o."Id" | ||
``` | ||
|
||
## Expression 0 | ||
|
||
```text | ||
[Microsoft.EntityFrameworkCore.Query.QueryRootExpression].Select(root => new Owner() {Id = root.Id, Name = IIF((root.Name == null), null, root.Name)}).OrderBy(t => t.Name).ThenBy(t => t.Id) | ||
``` | ||
|
||
## SQL 1 | ||
|
||
```sql | ||
SELECT a."Id", a."AnimalType", a."Name", a."OwnerId", a."IsPurring", a."IsBarking" | ||
FROM "Owners" AS o | ||
INNER JOIN "Animal" AS a ON o."Id" = a."OwnerId" | ||
WHERE o."Id" IN (6, 5, 4, 3, 2, 1) | ||
ORDER BY a."Name", a."Id" | ||
``` | ||
|
||
## Expression 1 | ||
|
||
```text | ||
[Microsoft.EntityFrameworkCore.Query.QueryRootExpression].Where(t => value(HotChocolate.Data.InterfaceIntegrationTests+AnimalsByOwnerDataLoader+<>c__DisplayClass2_0).keys.Contains(t.Id)).SelectMany(t => t.Pets).OrderBy(t => t.Name).ThenBy(t => t.Id) | ||
``` | ||
|
||
## Result 5 | ||
|
||
```json | ||
{ | ||
"data": { | ||
"owners": { | ||
"nodes": [ | ||
{ | ||
"id": 1, | ||
"name": "Owner 1", | ||
"pets": { | ||
"nodes": [ | ||
{ | ||
"__typename": "Cat", | ||
"id": 1, | ||
"name": "Cat 1" | ||
}, | ||
{ | ||
"__typename": "Dog", | ||
"id": 5, | ||
"name": "Dog 1" | ||
}, | ||
{ | ||
"__typename": "Dog", | ||
"id": 6, | ||
"name": "Dog 2" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "Owner 2", | ||
"pets": { | ||
"nodes": [ | ||
{ | ||
"__typename": "Cat", | ||
"id": 2, | ||
"name": "Cat 2" | ||
}, | ||
{ | ||
"__typename": "Dog", | ||
"id": 7, | ||
"name": "Dog 3" | ||
}, | ||
{ | ||
"__typename": "Dog", | ||
"id": 8, | ||
"name": "Dog 4" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": 3, | ||
"name": "Owner 3", | ||
"pets": { | ||
"nodes": [ | ||
{ | ||
"__typename": "Cat", | ||
"id": 3, | ||
"name": "Cat 3 (Not Pure)" | ||
}, | ||
{ | ||
"__typename": "Dog", | ||
"id": 9, | ||
"name": "Dog 5" | ||
}, | ||
{ | ||
"__typename": "Dog", | ||
"id": 10, | ||
"name": "Dog 6" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": 4, | ||
"name": "Owner 4 - No Pets", | ||
"pets": { | ||
"nodes": [] | ||
} | ||
}, | ||
{ | ||
"id": 5, | ||
"name": "Owner 5 - Only Cat", | ||
"pets": { | ||
"nodes": [ | ||
{ | ||
"__typename": "Cat", | ||
"id": 4, | ||
"name": "Only Cat" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": 6, | ||
"name": "Owner 6 - Only Dog", | ||
"pets": { | ||
"nodes": [ | ||
{ | ||
"__typename": "Dog", | ||
"id": 11, | ||
"name": "Only Dog" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
``` | ||
|
Oops, something went wrong.