JS Playground - Can I use connections to create a Shopify connection and call Shopify?

Can I call Shopify from the JS playground using const shopifyClient = await connections.shopify.forShopId(shopId);?
2 Replies
airhorns
airhorns8mo ago
sadly no -- the js playground runs client side, so the server-side shopify-api-node client object isnt available there though it'd be cool if this did work though! in the meantime you could make yourself a global action that runs a shopify call for you and call the global action from the playground
Anthony
AnthonyOP8mo ago
No problems, thought so! I just didn't want to have to deploy a new global action to production to do this thing for one merchant - was hoping to just run it in the playground!

Did you find this page helpful?