-
-
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
adcd989
commit 91d646d
Showing
3 changed files
with
329 additions
and
0 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
98 changes: 98 additions & 0 deletions
98
...y_Resolver_SubField_NonNull_EntryField_Nullable_Both_Services_Error_SubField.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,98 @@ | ||
# Entity_Resolver_SubField_NonNull_EntryField_Nullable_Both_Services_Error_SubField | ||
|
||
## Result | ||
|
||
```json | ||
{ | ||
"errors": [ | ||
{ | ||
"message": "Unexpected Execution Error", | ||
"locations": [ | ||
{ | ||
"line": 2, | ||
"column": 3 | ||
} | ||
], | ||
"path": [ | ||
"productById" | ||
] | ||
} | ||
], | ||
"data": { | ||
"productById": null | ||
} | ||
} | ||
``` | ||
|
||
## Request | ||
|
||
```graphql | ||
{ | ||
productById(id: "1") { | ||
id | ||
name | ||
price | ||
score | ||
} | ||
} | ||
``` | ||
|
||
## QueryPlan Hash | ||
|
||
```text | ||
A5FE502D9F6F0548B898BC17A33BC0F2A2A13AE6 | ||
``` | ||
|
||
## QueryPlan | ||
|
||
```json | ||
{ | ||
"document": "{ productById(id: \u00221\u0022) { id name price score } }", | ||
"rootNode": { | ||
"type": "Sequence", | ||
"nodes": [ | ||
{ | ||
"type": "Resolve", | ||
"subgraph": "Subgraph_1", | ||
"document": "query fetch_productById_1 { productById(id: \u00221\u0022) { id name price __fusion_exports__1: id } }", | ||
"selectionSetId": 0, | ||
"provides": [ | ||
{ | ||
"variable": "__fusion_exports__1" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Compose", | ||
"selectionSetIds": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"type": "Resolve", | ||
"subgraph": "Subgraph_2", | ||
"document": "query fetch_productById_2($__fusion_exports__1: ID!) { productById(id: $__fusion_exports__1) { score } }", | ||
"selectionSetId": 1, | ||
"path": [ | ||
"productById" | ||
], | ||
"requires": [ | ||
{ | ||
"variable": "__fusion_exports__1" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Compose", | ||
"selectionSetIds": [ | ||
1 | ||
] | ||
} | ||
] | ||
}, | ||
"state": { | ||
"__fusion_exports__1": "Product_id" | ||
} | ||
} | ||
``` | ||
|
117 changes: 117 additions & 0 deletions
117
..._Resolver_SubField_Nullable_EntryField_Nullable_Both_Services_Error_SubField.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,117 @@ | ||
# Entity_Resolver_SubField_Nullable_EntryField_Nullable_Both_Services_Error_SubField | ||
|
||
## Result | ||
|
||
```json | ||
{ | ||
"errors": [ | ||
{ | ||
"message": "Unexpected Execution Error", | ||
"locations": [ | ||
{ | ||
"line": 5, | ||
"column": 5 | ||
} | ||
], | ||
"path": [ | ||
"productById", | ||
"price" | ||
] | ||
}, | ||
{ | ||
"message": "Unexpected Execution Error", | ||
"locations": [ | ||
{ | ||
"line": 6, | ||
"column": 5 | ||
} | ||
], | ||
"path": [ | ||
"productById", | ||
"score" | ||
] | ||
} | ||
], | ||
"data": { | ||
"productById": { | ||
"id": "1", | ||
"name": "string", | ||
"price": null, | ||
"score": null | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Request | ||
|
||
```graphql | ||
{ | ||
productById(id: "1") { | ||
id | ||
name | ||
price | ||
score | ||
} | ||
} | ||
``` | ||
|
||
## QueryPlan Hash | ||
|
||
```text | ||
A5FE502D9F6F0548B898BC17A33BC0F2A2A13AE6 | ||
``` | ||
|
||
## QueryPlan | ||
|
||
```json | ||
{ | ||
"document": "{ productById(id: \u00221\u0022) { id name price score } }", | ||
"rootNode": { | ||
"type": "Sequence", | ||
"nodes": [ | ||
{ | ||
"type": "Resolve", | ||
"subgraph": "Subgraph_1", | ||
"document": "query fetch_productById_1 { productById(id: \u00221\u0022) { id name price __fusion_exports__1: id } }", | ||
"selectionSetId": 0, | ||
"provides": [ | ||
{ | ||
"variable": "__fusion_exports__1" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Compose", | ||
"selectionSetIds": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"type": "Resolve", | ||
"subgraph": "Subgraph_2", | ||
"document": "query fetch_productById_2($__fusion_exports__1: ID!) { productById(id: $__fusion_exports__1) { score } }", | ||
"selectionSetId": 1, | ||
"path": [ | ||
"productById" | ||
], | ||
"requires": [ | ||
{ | ||
"variable": "__fusion_exports__1" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Compose", | ||
"selectionSetIds": [ | ||
1 | ||
] | ||
} | ||
] | ||
}, | ||
"state": { | ||
"__fusion_exports__1": "Product_id" | ||
} | ||
} | ||
``` | ||
|