How can I apply `endsWith` filter on query?

You would need a custom query for that as we don’t have a built in filter for endsWith

https://strapi.io/documentation/developer-docs/latest/concepts/queries.html#mongoose

https://mongoosejs.com/docs/api.html#model_Model.find

And probably using a regex filter