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.
Getting started
- In Page Data or Component Data, add a new data query and set a query name.
- Set Custom function to
GraphQL. - Fill the parameters from the table below.
- Execute and save the query.
Parameters
| Field | Description | Required? |
|---|---|---|
| Url | GraphQL endpoint URL. | Required |
| Method | Method value for the request. | Required |
| Headers | Optional request headers. | Optional |
| Request | GraphQL request body/document. | Required |
| Var overrides | Optional GraphQL variables object. | Optional |
Is this page helpful?
NoYes