Docs
Launch GraphOS Studio
You're viewing documentation for a previous version of this software. Switch to the latest stable version.


EXTENSION

RequestBodyCreator

extension RequestBodyCreator

Methods

requestBody(for:sendOperationIdentifiers:sendQueryDocument:autoPersistQuery:)

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

Parameters

NameDescription
operationThe operation to use
sendOperationIdentifiersWhether or not to send operation identifiers. Should default to false.
sendQueryDocumentWhether or not to send the full query document. Should default to true.
autoPersistQueryWhether to use auto-persisted query information. Should default to false.
Next
Introduction
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company