-
-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed node field projections when nothing is selected. (#7554)
- Loading branch information
1 parent
f2a93cb
commit b7b3910
Showing
5 changed files
with
169 additions
and
10 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
23 changes: 23 additions & 0 deletions
23
.../__snapshots__/ProjectableDataLoaderTests.Brand_With_Default_Field_Over_Node.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,23 @@ | ||
# Brand_With_Default_Field_Over_Node | ||
|
||
## SQL | ||
|
||
```text | ||
-- @__keys_0={ '1' } (DbType = Object) | ||
SELECT b."Id" | ||
FROM "Brands" AS b | ||
WHERE b."Id" = ANY (@__keys_0) | ||
``` | ||
|
||
## Result | ||
|
||
```json | ||
{ | ||
"data": { | ||
"node": { | ||
"__typename": "Brand" | ||
} | ||
} | ||
} | ||
``` | ||
|
24 changes: 24 additions & 0 deletions
24
...ns/__snapshots__/ProjectableDataLoaderTests.Brand_With_Id_And_Name_Over_Node.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,24 @@ | ||
# Brand_With_Id_And_Name_Over_Node | ||
|
||
## SQL | ||
|
||
```text | ||
-- @__keys_0={ '1' } (DbType = Object) | ||
SELECT b."Id", b."Name" | ||
FROM "Brands" AS b | ||
WHERE b."Id" = ANY (@__keys_0) | ||
``` | ||
|
||
## Result | ||
|
||
```json | ||
{ | ||
"data": { | ||
"node": { | ||
"id": "QnJhbmQ6MQ==", | ||
"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