-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
verify that deferred fragment acts as a boundary for nullability rules (
- Loading branch information
Showing
4 changed files
with
244 additions
and
2 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
129 changes: 129 additions & 0 deletions
129
..._router__services__supergraph_service__tests__deferred_fragment_bounds_nullability-2.snap
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,129 @@ | ||
--- | ||
source: apollo-router/src/services/supergraph_service.rs | ||
expression: stream.next_response().await.unwrap() | ||
--- | ||
{ | ||
"hasNext": false, | ||
"incremental": [ | ||
{ | ||
"data": null, | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
0 | ||
], | ||
"extensions": { | ||
"valueCompletion": [ | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
0 | ||
] | ||
}, | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
1 | ||
] | ||
}, | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
2 | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"data": null, | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
1 | ||
], | ||
"extensions": { | ||
"valueCompletion": [ | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
0 | ||
] | ||
}, | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
1 | ||
] | ||
}, | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
2 | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"data": null, | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
2 | ||
], | ||
"extensions": { | ||
"valueCompletion": [ | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
0 | ||
] | ||
}, | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
1 | ||
] | ||
}, | ||
{ | ||
"message": "Cannot return null for non-nullable field Organization.nonNullId", | ||
"path": [ | ||
"currentUser", | ||
"activeOrganization", | ||
"suborga", | ||
2 | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
...lo_router__services__supergraph_service__tests__deferred_fragment_bounds_nullability.snap
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,25 @@ | ||
--- | ||
source: apollo-router/src/services/supergraph_service.rs | ||
expression: stream.next_response().await.unwrap() | ||
--- | ||
{ | ||
"data": { | ||
"currentUser": { | ||
"activeOrganization": { | ||
"id": "0", | ||
"suborga": [ | ||
{ | ||
"id": "1" | ||
}, | ||
{ | ||
"id": "2" | ||
}, | ||
{ | ||
"id": "3" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"hasNext": true | ||
} |
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