A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
I am trying to make a graphql request to shopify's admin api. I am using the official shopify-api-node library.
My query is as follows
const response = await shopify.graphql(` { order(id:"<some order id>") { currentCartDiscountAmountSet { shopMoney { amount currencyCode } } } } `);
[some order id is a admin graphql id]
From my understanding, this should return an object with a data field and an extensions field (I'm interested in query cost).
The response I get is simply contains order.
Why am I not getting data and extensions in my response?
Solved! Go to the solution
This is an accepted solution.
Have you checked the callGraphqlLimits property? It's described here --> https://www.npmjs.com/package/shopify-api-node.
This is an accepted solution.
Have you checked the callGraphqlLimits property? It's described here --> https://www.npmjs.com/package/shopify-api-node.
Yeah you're right, thanks!