API, Filters

Im making an language exchange app.
Lets say, in my backend, I got 3 signed up users.
User 1 knows Spanish, Greek
User 2 knows Georgian, Serbian, Russian
User 3 knows Georgian and Chechen

Then incomes this new user who only wants to see Russian and Georgian speakers.

What’s the best filter to use? $in , or is there a better way?
And how exactly would you would you write this ( ?filters[field][operator]=value ) part?

PS: I been reading Filters, Locale, and Publication State | Strapi 5 Documentation and I cant say I fully understood

This topic has been created from a Discord post (1300673660591538196) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

you can use qs library to help you write the request GitHub - ljharb/qs: A querystring parser with nesting support

in the matter of filtering you can use $or maybe, I don’t know how your collections are created, going through lang table would work I guess

Sorry, but how does that help?

Im just trying to find out the syntax for this part of the API url ?filters[field][operator]=value

I see that ljharb/qs isnt even a part of Strapi’s package json.

it’s to help you create that api part

they just advice it on strapi doc

:scream_cat: Ok. Let me see. Thank u

Oh ok, I see. Thank you

you’re welcome

it’s really useful to write the url way way easily