How could I request nested object in Strapi

System Information
  • Strapi Version: 4.24.1
  • Operating System: Windows
  • Database: Postgres
  • Node Version: 18.17.1
  • NPM Version:
  • Yarn Version:

Hi, my main purpose is to create a request filter to return only Comments based on a current user, for example in my case I want to show all comments referring to the user Canada Ruiz.


I’ve tried the following request,

filters[Comments][user][$eq]=Canada Ruiz&fields=Comments
Basically, it means that I want to return all comments where the user matches Canada Ruiz, although it doesn’t work like that.

Is there any way to do it using filters?

Any suggestions on this?

If anyone knows how I could do it or what is the best approach, I would love to learn about it.