Skip to content

Commit f159e73

Browse files
committed
Starte work on the response body
1 parent e7b37d9 commit f159e73

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

spec/Appendix B -- Variable Batching.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,15 @@ Each line in the JSON Lines (JSONL) response MUST include the following fields:
156156
- **`data`** (Optional, map): The data resulting from the execution of the GraphQL operation with the corresponding set of variables.
157157
- **`errors`** (Optional, array): An array of errors, if any were encountered during the execution of the operation.
158158
- **`extensions`** (Optional, map): A map that MAY include additional information about the request and execution, as needed by implementors.
159-
-
159+
160+
## Body
161+
162+
A server MUST indicate the media type of the response with a `Content-Type` header, and SHOULD indicate the encoding (e.g. `application/graphql-response+jsonl; charset=utf-8`).
163+
164+
TODO benjie: Should we repeat this or should we take this as a given?
165+
166+
If an `Accept` header is provided, the server MUST respect the given `Accept`
167+
header and attempt to encode the response in the highest priority media type
168+
listed that is supported by the server.
169+
170+

0 commit comments

Comments
 (0)