Why we add _Id: 0

why we add _id:0 in query

So that _id is not part of the output document.

1 Like

Thanks you sir thanks for replying

Hi @Prithviraj_24008,

In addition to @steevej-1495,

For more information on the projection field please refer our documentation.

Hope it helps!

Shubham Ranjan
Curriculum Support Engineer