Strapi provides you with multiple ways to filter results on relation’s fields deeply. This article will be covering the different ways to filter results using the following APIs:
This is a companion discussion topic for the original entry at https://strapi.io/blog/deep-filtering-alpha-26
I believe it’s critical that the URL syntax is corrected, I lost a few hours because of the inconsistency between this tutorial and the docs here Filtering, Locale, and Publication State for REST API - Strapi Developer Docs
long story short, the valid query has the form of
GET /api/books?filters[authors][hobbies][$contain]=“dance”
and not
GET /api/books?filters\[authors\][hobbies][$contain]=“dance”
beware of those pesky \
1 Like