Getting ReferencedBy from MetaObjects

I’m trying to retrieve all products that are referencing a metaobject

I’ve simplified the flow, but its still not working

Step 1: Get all metaobjects (I’m filtering by one right now to simplify)

Step 2: For Each

Step 3: Email all referenced product IDs (removed email for screenshot)

The flow itself never completes, and is stuck in the get metaobject entries

I suspect this is an issue with the Hydration Type Patch

Querying via the GraphQL App is returning the data I’m expecting

I don’t believe referencedBy exists? Where have you found this?

It exists in the API, and can be selected as a variable in the Flow Editor

Your query in Flow doesn’t match your query in GraphiQL

It’s possible that referencedBy is actually all the products in your shop or something like that, which may exceed your API limits to be pulling in Flow

In my current example the metaobject I’m pulling only has 2 product references

Just to confirm, with updated query

If you remove the use of referencedBy in Flow does it work? That might help narrow what’s causing the problem.

Also, if you could send a link to your workflow, I’ll see if Flow has any additional logs about this.

Here os the flow link https://admin.shopify.com/store/e31tuz-j0/apps/flow/editor/0196824b-b824-7a8d-8928-0df5c7e11134/019686fc-f107-7a14-9d0e-1215408552b9

Looking into it. I don’t see anything in our logs…which is weird as it should’ve error’d by now

What scopes are you using in GraphiQL? Also, can you use the 2024-07 API since that is what Flow uses?

OK, so the issue is related to scopes/permissions. For some reason Flow’s client cannot access this metaobject. I think it’s owned by Matrixify..either there is a bug around that or they locked it down such that other apps cannot access

That’s strange, is that at definition level, or at metaboject?
Randomly the graphql has stopped working despite it working earlier (I still had the same window open)

False positive on that…Flow’s client does have access (I was using the wrong Flow client).

Same here, someone had changed the permissions on the GraphQL app, reinstalled with the correct permissions and I can get access. Including 2024-07