feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.03k stars 748 forks source link

Empty $and and $or parameters #3111

Closed luciamaj closed 5 months ago

luciamaj commented 1 year ago

How can I define the $and and $or parameters in TypeBox? When I pass them as parameters, such as in this query string "/products?$and[0][has_variants]=true", and debug the query, the "$and" object appears to be empty. Thank you.

System configuration

"@feathersjs/typebox": "^5.0.1"

luciamaj commented 1 year ago

Understood, I cannot use operators $and or $or with additional query properties, I solved my issue defining my custom properties in the main schema and deleting them in a before hook.

daffl commented 1 year ago

This is definitely still something that can be clarified or made easier. I'm just not entirely sure exactly how.