Projection giới hạn fields trả về, giảm network payload, memory và serialization cost. Nó cũng giúp tránh lộ fields nhạy cảm nếu dùng cẩn thận.
Ví dụ:
javascript
db.users.find({ active: true }, { email: 1, name: 1, _id: 0 })Projection không thay thế authorization hay response schema ở app layer, nhưng là tối ưu quan trọng cho documents lớn.