GraphQL Connectors

GraphQL is a query language for API’s. GLU supports integration into graphQL endpoints on outbound orchestrations. For more information on graphQL itself, you can find it here: https://graphql.org/

Connector Setup

GraphQL is available as an Outbound Connector. The Connector can be created, allocated to the relevant GLU.Engines and the Environment connector settings setup as required.

Integration Builder Usage

GraphQL requests can consist of 3 elements:

  • Query: The written graphQL query
  • Variables: A variable set that the graphQL query references
  • Headers: Any HTTP headers required on the endpoint (Authorization etc).

GraphQL Query

Create the orchestration and select the GraphQL Connector. This will change the Request Manager panel to include the Query filed. The GraphQL query can be added to the query field as indicated below.

The GLU.Console does not validate the graphQL syntax. It is recommended to use Postman or the graphQL playground (https://www.graphqlbin.com/v2/new) to ensure you have a working graphQL syntax.

GraphQL Headers

Headers can be added to the Outbound Request through the Request Parameter and marshalling the parameter to the Header.

GraphQL Variables

GraphQL variables are added into the Outbound Request through the use of the GLU parameters. Each variable required must be setup as a Request Parameter in the outbound orchestration.

Was this article helpful?

Related Articles

Fill the form and we’ll contact you shortly

    I agree with

    cookies
    We uses cookies to make your experience on this website better. Learn more
    Accept cookies