Below is an example of the original SQL to MongoDB and the result.
Original SQL to MongoDB Exampleselect id,salary from employee where age >= 35 and (designation = 'manager' or (lastname = 'Darshit' and firstname like '%Darshit%'))
And an example of how the online SQL to MongoDB works.
SQL to MongoDB Resultdb.employee.find({ "$and": [{ "age ":{ "$gte" : 35 } },{ "$or": [{ "designation " : 'manager' },{ "$and": [{ "lastname " : 'Darshit' },{ " firstname " : '%Darshit%' }] }] }] },{ "id": 1, "salary": 1 } );