-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reformat the parts of an execution request #1090
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,21 @@ A GraphQL service generates a response from a request via execution. | |
|
||
:: A _request_ for execution consists of a few pieces of information: | ||
|
||
- The schema to use, typically solely provided by the GraphQL service. | ||
- A {Document} which must contain GraphQL {OperationDefinition} and may contain | ||
{FragmentDefinition}. | ||
- Optionally: The name of the Operation in the Document to execute. | ||
- Optionally: Values for any Variables defined by the Operation. | ||
- An initial value corresponding to the root type being executed. Conceptually, | ||
an initial value represents the "universe" of data available via a GraphQL | ||
Service. It is common for a GraphQL Service to always use the same initial | ||
value for every request. | ||
|
||
Given this information, the result of {ExecuteRequest()} produces the response, | ||
to be formatted according to the Response section below. | ||
- {schema}: The schema to use, typically solely provided by the GraphQL service. | ||
- {document}: A {Document} which must contain GraphQL {OperationDefinition} and | ||
may contain {FragmentDefinition}. | ||
- {operationName} (optional): The name of the Operation in the Document to | ||
execute. | ||
- {variableValues} (optional): Values for any Variables defined by the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit and not-this-pr: it's not quite any variable: as you can omit some and must include others, but rather Values for a subset of Variables... but I'm not sure I can describe that in a more clarifying less ambiguous way. |
||
Operation. | ||
- {initialValue} (optional): An initial value corresponding to the root type | ||
being executed. Conceptually, an initial value represents the "universe" of | ||
data available via a GraphQL Service. It is common for a GraphQL Service to | ||
always use the same initial value for every request. | ||
|
||
Given this information, the result of {ExecuteRequest(schema, document, | ||
operationName, variableValues, initialValue)} produces the response, to be | ||
formatted according to the Response section below. | ||
|
||
Note: GraphQL requests do not require any specific serialization format or | ||
transport mechanism. Message serialization and transport mechanisms should be | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit and not-this-PR:
GraphQL service
is mildly ambiguous, it's the execution service or the executor or something like that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also nit:
GraphQL Service
capitalized like below?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use this term across the spec I believe