Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Editing metaobjects from Shopfront

Editing metaobjects from Shopfront

sydneyroosters
Shopify Partner
7 0 1

I have created an Order  metaobject to store data that is driven by my custom built theme powering my Shopify shop front. The idea behind this approach is to store things such customer preferences (e.g. a charity ID per product for an order). 

 

Is it even possible to edit metaobject from a shopfront? If not, I assume the only way would be to build a custom API with access to the GraphQL api which can handle such requests 

 

Any advice is greatly appreciate. 

 

 

Replies 2 (2)

SomeUsernameHe
Shopify Partner
519 58 112

I'm not in front of my computer but hopefully I can help. 

 

Yes, this is correct. An easy way to do this is to make these with CURL. If you have a app with Shopify CLI 3 you can use NPM RUN DEV and press G to open graphiql in a webpage. 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
sydneyroosters
Shopify Partner
7 0 1

Apologises for the delayed response. Thanks for your input. 

 

I was able to utilise the cart attributes field to populate the required data that can be used in my backend system.