Description
Describe the bug
Schema inspection on the Pokemon GraphQL from the plugin works like a charm. Changing it to the Shopify GraphQL API endpoint and inspecting again results in an error.
GraphiQL (the web based GraphQL IDE) does work with the Shopify GraphQL schema: https://shopify.dev/graphiql/admin-graphiql
To Reproduce
In the root of the project I have graphql.config.yml
:
schema: "https://shopify.dev/admin-graphql-direct-proxy/2025-04"
documents: 'src/main/**/*.graphql'
I press the little "play icon" in the margin before the schema: ...
line.
After some seconds I get a notification (small tooltip in the bottom right of the screen) saying:
GraphQL introspection
A valid schema could not be built using the introspection result.
It gives me a "Show error" link which brings me to a file (query-error.txt
) with the content:
format specifier '% o'
My Shopify queries (in 'src/main/**/*.graphql') show mostly red errors.
When I change the URL in graphql.config.yml
to https://beta.pokeapi.co/graphql/v1beta
and press the "play icon" all seems to work well (after I change the queries to fit the schema, obviously)...
Expected behavior
Shopify should work, or the error should be descriptive enough so that it's clear what's going wrong.
Version and Environment Details
Operation system: Linux
IDE name and version: IDEA 2025.1.2 UE
Plugin version: 251.26094.37