Skip to content

Commit

Permalink
Be more explicit about the data that makes up a GraphQL request
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Apr 5, 2024
1 parent 33c7fff commit 5cd2861
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ A GraphQL service generates a response from a request via execution.
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.
- {extensions} (optional): A map reserved for implementers to extend the
protocol however they see fit.

The request may also contain an `extensions` entry. This entry, if set, must
have a map as its value. This entry is reserved for implementors to extend the
protocol however they see fit, and hence there are no additional restrictions on
its contents.
Note: Since {extensions} is reserved for implementers, the only requirement is
that, if present, it is a map. There are no additional restrictions on its
contents. It is recommended that implementers use prefixes in {extensions} keys
to avoid conflicts with other implementers.

Given this information, the result of {ExecuteRequest(schema, document,
operationName, variableValues, initialValue)} produces the response, to be
Expand Down

0 comments on commit 5cd2861

Please sign in to comment.