Skip to content

Commit

Permalink
feat(GraphQL): add type documentation for query and operationName (
Browse files Browse the repository at this point in the history
…#662)

Add type documentation for query and operationName
  • Loading branch information
klippx authored Jan 31, 2025
1 parent b6db78e commit bb399b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/RequestParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit bb399b2

Please sign in to comment.