Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
Hi, I'm seeing null when trying to access a Metaobject reference, within a Metaobject query.
The referenced object contains the category name, which is essential to my cause. There is 1 reference on each entry.
Is my structure OK for referencing this?
{ metaobjects(type: "my_text", first: 50) { nodes { handle field(key: "body_text") { value references(first: 1) { edges { node { ... on Metaobject { id type fields { key value } } } } } } } } }
Result:
"data": { "metaobjects": { "nodes": [ { "handle": "xxxxxxxxxxxxx", "field": { "value": "Item 1", "references": null } }, { "handle": "xxxxxxxxxxxx", "field": { "value": "Item 2", "references": null } } } }