-
Notifications
You must be signed in to change notification settings - Fork 311
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
ade5a3e
commit 4fd8829
Showing
17 changed files
with
342 additions
and
252 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
79 changes: 49 additions & 30 deletions
79
examples/__outputs__/10_transport-http/transport-http_method-get.output.txt
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 |
---|---|---|
@@ -1,31 +1,50 @@ | ||
/some/path/to/handleOutput.ts:XX:XX | ||
const error = new Errors.ContextualAggregateError( | ||
^ | ||
|
||
|
||
ContextualAggregateError: One or more errors in the execution result. | ||
at handleOutput (/some/path/to/handleOutput.ts:XX:XX:19) | ||
at run (/some/path/to/client.ts:XX:XX:12) | ||
at process.processTicksAndRejections (node:internal/process/task_queues:XX:XX) | ||
at async runRaw (/some/path/to/client.ts:XX:XX:12) | ||
at async Object.raw (/some/path/to/client.ts:XX:XX:14) | ||
at async Proxy.rawString (/some/path/to/client.ts:XX:XX:14) | ||
at async <anonymous> (/some/path/to/transport-http_method-get.ts:XX:XX:1) { | ||
context: {}, | ||
cause: undefined, | ||
errors: [ | ||
GraphQLError: Field "addPokemon" argument "type" of type "PokemonType!" is required, but it was not provided. | ||
at <anonymous> (/some/path/to/graphqlHTTP.ts:XX:XX:47) | ||
at Array.map (<anonymous>) | ||
at parseExecutionResult (/some/path/to/graphqlHTTP.ts:XX:XX:28) | ||
at Object.unpack (/some/path/to/core.ts:XX:XX:26) | ||
at process.processTicksAndRejections (node:internal/process/task_queues:XX:XX) | ||
at async runHook (/some/path/to/runHook.ts:XX:XX:16) { | ||
path: undefined, | ||
locations: undefined, | ||
extensions: [Object: null prototype] {} | ||
} | ||
] | ||
---------------------------------------- SHOW ---------------------------------------- | ||
{ | ||
methodMode: 'getReads', | ||
headers: Headers { | ||
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', | ||
'content-type': 'application/json', | ||
tenant: 'nano' | ||
}, | ||
signal: undefined, | ||
method: 'post', | ||
url: URL { | ||
href: 'http://localhost:3000/graphql', | ||
origin: 'http://localhost:3000', | ||
protocol: 'http:', | ||
username: '', | ||
password: '', | ||
host: 'localhost:3000', | ||
hostname: 'localhost', | ||
port: '3000', | ||
pathname: '/graphql', | ||
search: '', | ||
searchParams: URLSearchParams {}, | ||
hash: '' | ||
}, | ||
body: '{"query":"mutation { addPokemon(attack:0, defense:0, hp:1, name:\\"Nano\\", type: grass) { name } }"}' | ||
} | ||
|
||
Node.js vXX.XX.XX | ||
---------------------------------------- SHOW ---------------------------------------- | ||
{ | ||
methodMode: 'getReads', | ||
headers: Headers { | ||
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', | ||
tenant: 'nano' | ||
}, | ||
signal: undefined, | ||
method: 'get', | ||
url: URL { | ||
href: 'http://localhost:3000/graphql?query=query+%7B+pokemonByName%28name%3A+%22Nano%22%29+%7B+hp+%7D+%7D', | ||
origin: 'http://localhost:3000', | ||
protocol: 'http:', | ||
username: '', | ||
password: '', | ||
host: 'localhost:3000', | ||
hostname: 'localhost', | ||
port: '3000', | ||
pathname: '/graphql', | ||
search: '?query=query+%7B+pokemonByName%28name%3A+%22Nano%22%29+%7B+hp+%7D+%7D', | ||
searchParams: URLSearchParams { 'query' => 'query { pokemonByName(name: "Nano") { hp } }' }, | ||
hash: '' | ||
} | ||
} |
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
Oops, something went wrong.