I need function which would take mongo shell like query as input parameter and execute it.
Hi Meirkhan,
Could you elaborate your use case and goal with examples please ?
If you’re referring to db.eval method, it takes a JavaScript function not a shell like query input.
Regards,
Wan.