/
Launch Apollo Studio


PROTOCOL

RequestBodyCreator

public protocol RequestBodyCreator

Methods

requestBody(for:sendOperationIdentifiers:sendQueryDocument:autoPersistQuery:)

func requestBody<Operation: GraphQLOperation>(for operation: Operation,
                                              sendOperationIdentifiers: Bool,
                                              sendQueryDocument: Bool,
                                              autoPersistQuery: Bool) -> GraphQLMap

Creates a GraphQLMap out of the passed-in operation

  • Parameters:

    • operation: The operation to use
    • sendOperationIdentifiers: Whether or not to send operation identifiers. Defaults to false.
  • Returns: The created GraphQLMap

Parameters

NameDescription
operationThe operation to use
sendOperationIdentifiersWhether or not to send operation identifiers. Defaults to false.
Edit on GitHub