Hi,
The metadata for the Shopify GraphQL is 8mb at the moment. Because the GraphQL API doesn’t support functionality to filter the introspection query, there is no way to reduce the amount of metadata retrieved. I was wondering if Shopify has plans to introduce an alternative approach for finding out what resources and fields are available? The regular GraphQL approach is not working well.
There is no mechanism to filter the schema beyond what is available via the GraphQL spec for introspection.
There are some community tools (e.g. Filter Schema Transform (GraphQL-Mesh)) that might assist you in transforming the full schema into something smaller, closer to what your app requires.
1 Like
Our application is generic adapter that has to dynamically work with the metadata. If GraphQL API doesn’t provide way to filter the metadata, I suggest Shopify to introduce separate resources that can be used to dynamically retrieve what resources and resource fields are available. Otherwise, your servers will be constantly asked for the entire metadata and that is not good for the Shopify service either.