The page about rate-limits mentions the extension field on the GraphQL response (Admin API/Storefront API).
https://shopify.dev/api/usage/rate-limits#checkout-level-throttle
It mentions that you can also set a header for more detailed info:
To get a detailed breakdown of how each field contributes to the requested cost, you can include the header ‘X-GraphQL-Cost-Include-Fields’: true in your request.
We are using ‘graphql-request’ together with codegen by ‘graphql-codegen’ so in order to view the extensions I switched on “rawRequest: true” as documented here:
https://www.graphql-code-generator.com/plugins/typescript-graphql-request#usage-examples> > By default, the request method return the data or errors key from the response. If you need to access the extensions key you can use the rawRequest method.
The result was no extensions.
Snippet used:
this.rawClient.rawRequest(query, vars).then(response => {
rootLogger.log('request ' + nameOfQueryOrMutation(query), response);
if (response.status === 200) {
return response.data;
}
throw response.data;
});
Am I missing something or is the extension not working?