Connection APIs allow you to securely access an API endpoint at a defined host.

We’re introducing new APIs consistently through ongoing development with build partners. Let’s chat about what would make the Functions SDK even more powerful for your next use case!

invokeGraphqlApi

Make a query or mutation against a GraphQL API endpoint.

invokeGraphqlApi (
  hostName: string,
  query: string,
  variables?: Map<string, string>
): string
hostName
string
required

Internal name of your host, as defined in your manifest.

query
string
required

GraphQL operation for execution on your API server to retrieve or write data.

variables
string

Optional variables added to the query.