Re: Two way metaobject reference

Two way metaobject reference

StephenK
Shopify Partner
80 7 46

I doing some work on a client store, where I'm creating some new metaobjects, to take advantage of the new online store pages for them (which is great!).

However I have two metaobjects that I want to link bi-directionally, but the admin UI doesn't seem to allow me to select the second object if it is already referenced in the other direction.

Example of the behaviour - https://www.youtube.com/watch?v=T9ndYlBmQaI

Notice how when an object is in the "referenced by" section, it won't check the box when trying to reference it.

 

Can't find anywhere in docs, that this is a limitation, is it a bug?

Some Shopify/Ecommerce related articles - https://medium.com/@stephenkeable
Replies 4 (4)

Liam
Community Manager
3108 341 879

Hi StephenK,

 

Thanks for flagging this bug - I've connected with the custom data product team on this and they';; work to improve this experience so that you can create multiple references like this. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

StephenK
Shopify Partner
80 7 46

Ok that’s cool, I’ll bench the work until the bug is fixed.

I have a short term workaround of looping through all of a type of meta object and checking for a field that matches, instead (which might not scale, but hopefully the bug is fixed by then).

Some Shopify/Ecommerce related articles - https://medium.com/@stephenkeable
StephenK
Shopify Partner
80 7 46

Has there been any update to this?

Some Shopify/Ecommerce related articles - https://medium.com/@stephenkeable
Liam
Community Manager
3108 341 879

No update as of yet Stephen - the best thing to do would be to keep an eye on our developer changelog: https://shopify.dev/changelog

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog