Write Functions
Connection
Incorporate your data into functions
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
requiredInternal name of your host, as defined in your manifest.
query
string
requiredGraphQL operation for execution on your API server to retrieve or write data.
variables
string
Optional variables added to the query.