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

NameDescription
operationThe operation to use
sendQueryDocumentWhether or not to send the full query document. Should default to true.
autoPersistQueryWhether to use auto-persisted query information. Should default to false.
Feedback

Edit on GitHub

Forums