From bb399b2f7126e587f2d6ff590bf3cffb9560c542 Mon Sep 17 00:00:00 2001 From: Mathias Klippinge Date: Fri, 31 Jan 2025 15:08:07 +0100 Subject: [PATCH] feat(GraphQL): add type documentation for `query` and `operationName` (#662) Add type documentation for query and operationName --- src/RequestParameters.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/RequestParameters.ts b/src/RequestParameters.ts index 55bddde5b..531c622ac 100644 --- a/src/RequestParameters.ts +++ b/src/RequestParameters.ts @@ -31,6 +31,16 @@ export type RequestParameters = { */ previews?: string[]; }; + /** + * The name of the operation to execute. + * Required only if multiple operations are present in the query document. + */ + operationName?: string; + /** + * The GraphQL query string to be sent in the request. + * This is required and must contain a valid GraphQL document. + */ + query?: string; /** * Pass custom meta information for the request. The `request` object will be returned as is. */