How to Deploy a Shopify Dashboard Template with GraphQL
Last updated: Dec 9, 2021
Hey friends, I’ve been experimenting with Sanity Connect, the Shopify template and (our version of) Hydrogen today and managed to get your template dashboard running with our sync’d store. I wanted to rely on Sanity’s idea of “right” so I created the studio from within Shopify and attempted to deploy your boilerplate graphql for use with some new components in our Hydrogen repo. It didn’t work straight up, and as the Shopify dashboard template is likely still a WIP I thought it’d be useful to flag the things I had to do to get the schema deployed.
Lifted all problematic inline object definitions (we habitually avoid anonymous objects to protect graphql): - galleryProduct - section - footer - menu - linkGroup - priceRange
No worries! Yeah I’d guessed that might be the case, didn’t take long to shuffle the code around so it’s not a really major issue. That product option change is probably the most dangerous, not yet sure what the implications might be but I’ll probably find out soon…