RequestBodyCreator
EXTENSION
RequestBodyCreator
Swift
1extension RequestBodyCreatorMethods
requestBody(for:sendQueryDocument:autoPersistQuery:)
Swift
1public func requestBody<Operation: GraphQLOperation>(
2 for operation: Operation,
3 sendQueryDocument: Bool,
4 autoPersistQuery: Bool
5) -> JSONEncodableDictionaryParameters
| Name | Description |
|---|---|
| operation | The operation to use |
| sendQueryDocument | Whether or not to send the full query document. Should default to true. |
| autoPersistQuery | Whether to use auto-persisted query information. Should default to false. |