-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: include mutation root type definition in connectors (#6516)
- Loading branch information
1 parent
b0f3cb6
commit affe462
Showing
18 changed files
with
363 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,11 @@ type Y { | |
input YInput { | ||
z: ID | ||
} | ||
|
||
type Mutation { | ||
m: M | ||
} | ||
|
||
type M { | ||
n: String | ||
} |
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 |
---|---|---|
|
@@ -42,3 +42,11 @@ type Y { | |
input YInput { | ||
z: ID | ||
} | ||
|
||
type Mutation { | ||
m2(x: ID, y: YInput): M | ||
} | ||
|
||
type M { | ||
n: String | ||
} |
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
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
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
1 change: 1 addition & 0 deletions
1
apollo-router/tests/samples/enterprise/connectors-defer/README.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 @@ | ||
This tests using defer and connectors. It uses a mutation because there was an expansion bug with mutation root type definitions that appeared only when using defer. |
15 changes: 15 additions & 0 deletions
15
apollo-router/tests/samples/enterprise/connectors-defer/configuration.yaml
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,15 @@ | ||
include_subgraph_errors: | ||
all: true | ||
|
||
preview_connectors: | ||
subgraphs: | ||
connectors: | ||
sources: | ||
jsonPlaceholder: | ||
override_url: http://localhost:4007 | ||
|
||
telemetry: | ||
exporters: | ||
logging: | ||
stdout: | ||
format: text |
38 changes: 38 additions & 0 deletions
38
apollo-router/tests/samples/enterprise/connectors-defer/http_snapshots.json
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,38 @@ | ||
[ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"path": "/", | ||
"body": null | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"content-type": ["application/json; charset=utf-8"] | ||
}, | ||
"body": { | ||
"f": "1", | ||
"entity": { | ||
"id": "2" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"path": "/e/2", | ||
"body": null | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"content-type": ["application/json; charset=utf-8"] | ||
}, | ||
"body": { | ||
"id": "2", | ||
"f": "3" | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.