BTGraphQLEncodableBody
public protocol BTGraphQLEncodableBody : Encodable
Protocol representing the body of a GraphQL mutation request. Conforming types must provide a GraphQL query string and an optional variables object.
-
Declaration
Swift
associatedtype Variables : Encodable -
The GraphQL mutation or query string to be executed by the backend.
Declaration
Swift
var query: String { get } -
The variables to be used in the GraphQL query.
Declaration
Swift
var variables: Variables { get }
View on GitHub