Overview

The following article introduces how to filter results by deeply nested fields.

https://strapi.io/blog/deep-filtering-alpha-26

As described above, by preparing the content types and fields, I was able to obtain the intended results.

Notes

As mentioned in the comments of the above article, the text contains “" characters, but these appear to be unnecessary.

  • Incorrect
GET/api/books?filters\[authors\][hobby][$contains]=dance

By using the query without “" as follows, the intended results were obtained.

  • Correct
GET/api/books?filters[authors][hobby][$contains]=dance

Summary

I hope this serves as a helpful reference.