MongoDB card reviewmedium

What is projection in MongoDB?

Projection controls which fields are returned from MongoDB queries. Instead of returning the entire document, developers can include or exclude specific fields. Projection reduces network usage and improves query performance.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.

What is projection in MongoDB? - MongoDB Interview Answer | InterviewAceAI