Contentful logo

Contentful Community

Query references content of a content type

I have this model to show banners to users based on their status.

  • content-type: banners

    • banner 1
    • banner 2
    • banner 3
  • content-type: status

    • status code: silver
    • status code: gold
    • status code: platinum

So on the content-type banner I have a field “references, many” were I add the content-type status.

I am having a hard time building the query so the response only contains the banners for a status

content_type: banners,
include: 1,
fields.status.sys.contentType.sys.id: status
'fields.status.fields.code[match]: silver,platinum

Any examples of making “references, many” queries?

Thanks

here’s a couple other posts that have more info on this topic: