I've been working on a sizable single-page application (SPA) and found it quite straightforward. I tell Claude what I need, and it gives me the code, which I copy, paste, and tweak as necessary. I've learned to modularize my code to avoid overwhelming my context window and to manage my tokens over time.
However, I've recently dived into Shopify's GraphQL and have had a tough time getting Sonnet (Claude) to assist effectively. The main issue is that many Shopify commands (mutations) have become deprecated, which causes Sonnet to generate a lot of unusable code. On top of that, proper formatting is crucial for these commands.
After struggling for three days, I considered asking Claude to create a detailed "how to" guide for an essential mutation like "productCreate". My plan was to compile several mutation guides to create a project reference for any updates I need to make on Shopify. Unfortunately, when I asked Claude to generate this document, it still pulled outdated examples, leading to more formatting errors.
I've been really frustrated with these limitations, and I can't help but wonder if anyone else is experiencing similar challenges!
3 Answers
Every AI has its limitations, and it seems like you're really pushing the boundaries with what you're trying to do. You might need to find a workaround. Have you considered trying Gemini AI? It has a larger context and might be better suited for this kind of task. Just remember, advancements are happening every month!
I usually write the queries myself and test them using Postman. I make sure to document the GraphQL queries and their responses. Being hands-on really helps, as Shopify updates quickly, and automated tools might lag behind. I prefer crafting concise queries to reduce cost and keep things efficient. Just a tip—tailor your requests to ensure you don’t reach out to Shopify for rate boosts later on!
You might want to try using the MCP context7 option. It could help get you updated documentation. Just prompt Claude with "use context7" and see what it produces!
Thanks for the tip! I found some raw format links that should be really helpful. Appreciate it!
Are you referring to this site? https://context7.com/shopify/shopify-api-js
Wow, I've been hunting for solid documentation, so this is a great find. Cheers!