Now the question is how do I support all the filtering options that the generated documents query supports?
Manually map everything from the input to some mongodb queries??
Hi @Sumedha_Mehta1! Thanks for your reply!
I understand that I can implement by hand all possible filter types. However it would be a lot of work to support all possible filter types consistently with how generated field filters work.
How I imagined it could work: you mark an input with some existing type, e.g. "input_type_format": "UserQueryInput", and then in the resolver function you’d have some function exposed that would turn your input into a mongodb query object, e.g. a kind of query builder: context.services.get('mongodb-atlas').db('xxxl').collection('documents').find(QueryHelper.build(input))