A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
When I try to call:
I get the following response:
{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}
It is possible for me to call the count:
/admin/api/2023-04/products/count.json
That returns correctly.
Any idea of what could be causing this? I am using a development store.
Is this a Shopify app? Either way, be sure to have the proper scopes inside your custom app or root .toml file.
If you changed the scopes during the process uninstall and reinstall to get access via the oAuth process.
I know it sounds silly to mention, but be sure you are using the correct method ("GET" | "POST"), and proper data structure for the body/query params (if at all). I mess up these small things all the time. After batting my head against the wall I realize its a small type or something as simple as this, haha.
Any other details will help better answer though. Be sure to like and reply so I know to respond. Good luck, hope this helps a bit.