RequestBodyCreator
EXTENSION
RequestBodyCreator
Swift
1extension RequestBodyCreator
Methods
requestBody(for:sendQueryDocument:autoPersistQuery:)
Swift
1public func requestBody<Operation: GraphQLOperation>(
2 for operation: Operation,
3 sendQueryDocument: Bool,
4 autoPersistQuery: Bool
5) -> JSONEncodableDictionary
Parameters
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 . |