Unable to Use Introspection for Shopify GraphQL API in Retool

Goal:
I want to query Shopify's GraphQL API effectively using Retool. Ideally, I’d like to utilize introspection or the schema to enable the AI Agent to assist in generating queries, similar to how it works with other GraphQL APIs.

Steps:

  • Successfully connected and queried a GraphQL API on another platform using Retool.
  • Connected to the Shopify GraphQL API and configured it as a resource.
  • Attempted to use Retool's Agent with the Shopify API, but it cannot retrieve the schema or assist with query creation.
  • Reviewed Shopify API documentation but could not resolve the introspection issue.

Details:

  • While the Shopify API works fine when I manually construct queries, the lack of introspection means I cannot leverage Retool's built-in AI support for query creation.
  • My configuration uses the appropriate API token with the necessary permissions (checked as per Shopify documentation).
  • Retool displays no error during API setup, but the schema is not available for the AI Agent.
2 Likes

Hey @mascaritas!

And you are connecting the Shopify Graphql resource as a graphql resource right?

What are you setting as the base url for your store?

Do you have the disable introspection toggled off?

Hey @mascaritas! Thanks for reaching out.

I checked our backend logs and don't see any requests being made to the /api/resources/:resourceName/schema endpoint, which makes me think that you might have introspection disabled. Double check that and let us know if you're still running into issues!

1 Like