Need query example with API Parameters: “in” from an array of objects

System Information
  • Strapi Version: 3.6.1
  • Operating System: macOS
  • Database: PostgreSQL
  • Node Version: 14.16.1
  • NPM Version: 6.14.12
  • Yarn Version:

Hello to everyone!

I was trying to get data whose values ​​match; I’d like to share dummy data to figure out what I want to achieve;

dummy

Let’s say the collection is teams, and in each team, I’ve tags field and each tag has id and content. If the tag content is = “art” I want to fetch the team that matched.

I tried to do it using “contains” and “in”. But this doesn’t give the desired result. After spending hours on this, it would be great if someone could help me.

Thanks in advance

Try the query below :point_down:
localhost:1337/teams?_where[_or][0][tags.content_contains]=art

also, are you using the default controllers?
hope this helps :slight_smile:

1 Like

Yes, I’m using default controllers but it did not work again :thinking: @Twistedseed

Tags is a component that has included content, I think that’s why the problem occurs…



Screen Shot 2021-09-29 at 14.00.00