I wanna get one ContentType entries (in my case, movies) by another ContentType entries (peoples, such as directors and actors …).
Please tell me how.
I suppose: in movies there are reference fields linking to directors and actors. As an example, in order to retrieve movies based on the value of fields.directorName
with a single API call:
- For one-reference field, you could use search on reference.
- For many-reference field, you will need GraphQL one-to-many-relationship, as it is a limitation with REST API and therefore not possible.
Thanks for your replying.
In my case, a people (for example, Clint Eastwood) fits in directers fields and also actors fields.
In addition, actors fields and directers fields are list type.
How do I retrieve movies by people Ids?