Contentful logo

Contentful Community

Filter API results with relational queries NOT working with multiple tags

Hi Contentful Team,

I have a dynamic tags for the a contenttype and would like to query via querystring in URL for contentful to retrieve the JSON for the list of content entries that matches the field from the dynamic tags nested on them. But I am not able to retrieve the response for that api request.

This is the error message that I get:
“message”: “You are trying to search on a reference to an unsupported type. You can only search on references to single entries”

This is the query that I tried following the contentful doc given below:

https://cdn.contentful.com/spaces/my-space-id/entries/
    ?content_type=movies
    &fields.genre.sys.contentType.sys.id=genre
    &fields.genre.fields.label[all]=Thriller

This contentful doc refers to single tags with genre but doesn’t work with multiple tags with genre.
https://www.contentful.com/developers/docs/concepts/relational-queries/

I am able to retrieve content by filtering with

https://cdn.contentful.com/spaces/my-space-id/entries/
    ?content_type=movies
    &fields.genre.sys.contentType.sys.id=genre

but not with:

https://cdn.contentful.com/spaces/my-space-id/entries/
    ?content_type=movies
    &fields.genre[all].fields.label[all]=Thriller
1 Like

Hello, do you have some solution ?