Skip to content

Commit bb399b2

Browse files
authored
feat(GraphQL): add type documentation for query and operationName (#662)
Add type documentation for query and operationName
1 parent b6db78e commit bb399b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/RequestParameters.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ export type RequestParameters = {
3131
*/
3232
previews?: string[];
3333
};
34+
/**
35+
* The name of the operation to execute.
36+
* Required only if multiple operations are present in the query document.
37+
*/
38+
operationName?: string;
39+
/**
40+
* The GraphQL query string to be sent in the request.
41+
* This is required and must contain a valid GraphQL document.
42+
*/
43+
query?: string;
3444
/**
3545
* Pass custom meta information for the request. The `request` object will be returned as is.
3646
*/

0 commit comments

Comments
 (0)