Metafield references in graphQL

Hi, I’m building a custom storefront with Hydrogen. I’ve set up a metafield on pages in Shopify that is a list of page references. I’m then querying this field with graphQL like this:

{
  page(handle:"about") {
    title
    subpages: metafield(namespace: "custom", key: "subpages") {
      key
      value
      references(first: 10) {
        nodes{
          ...on Page{
            title
          }
        }
      }
    }
  }
}

I’m quite certain this query was working before, but I’m no longer getting any results inside nodes. Just an empty array. Other reference metafields (images for example) are still working, but they are just one reference, and not a list of references. Can I get some help on this please?

I’m using the Storefront API version 2023-01.

1 Like