Two way metaobject reference

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?

1 Like

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.

1 Like

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).

Has there been any update to this?

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

1 Like