1

Question is as you might have guessed from title, if I can use Node.JS with connected to MongoDB, without loaded MongoJS module.

I want to minimize application on maximum, so loading external module will load client. What are other alternatives to MongoJS?

1 Answer 1

4

You can directly use the mongodb-native driver without using the MongoJS module which wraps it.

npm install mongodb

See the docs here.

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

1 Comment

@Mpa4Hu MongoJS is easier to use, but directly using mongodb-native works fine as well.

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.