GraphQL API integration

The GraphQL integration lets you connect to any GraphQL API. Use it when your backend exposes a GraphQL endpoint and you want to run queries from Plasmic data queries.

You can configure endpoint, request method, headers, request document, and variable overrides in one place.

Configure data query for GraphQL

Getting started

  1. In Page Data or Component Data, add a new data query and set a query name.
  2. Set Custom function to GraphQL.
  3. Fill the parameters from the table below.
  4. Execute and save the query.

Parameters

FieldDescriptionRequired?
UrlGraphQL endpoint URL.Required
MethodMethod value for the request.Required
HeadersOptional request headers.Optional
RequestGraphQL request body/document.Required
Var overridesOptional GraphQL variables object.Optional

Is this page helpful?

NoYes