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


STRUCT

GraphQLGETTransformer

public struct GraphQLGETTransformer

Methods

init(body:url:)

public init(body: GraphQLMap, url: URL)

A helper for transforming a that can be sent with a POST request into a URL with parameters for a GET request.

  • Parameters:
    • body: The GraphQLMap to transform from the body of a POST request
    • url: The base url to append the query to.

Parameters

NameDescription
bodyThe GraphQLMap to transform from the body of a POST request
urlThe base url to append the query to.

createGetURL()

public func createGetURL() -> URL?

Creates the get URL.

  • Returns: [optional] The created get URL or nil if the provided information couldn't be used to access the appropriate parameters.
Next
Introduction
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company