2

According to the documentation, the MongoDB can be queried by creating Query object using the MongoDB driver for .Net, is there any alternative to query the MongoDB using the MongoDB query string?

I want to generate the MongoDB query string in JavaScript and pass it down to the MongoDB driver without creating a Query objects.

Thanks!

0

1 Answer 1

1

Use Eval(), e.g.: database.Eval("return 1;");.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.