Skip to content

Conversation

@manprit-tiwari
Copy link

@manprit-tiwari manprit-tiwari commented Nov 2, 2025

This PR fixes incorrect MongoDB logical operator examples in the documentation.

Changes made:

  • Corrected $and, $or, and $nor syntax (added proper object wrapping {}).
  • Fixed $not example to use field-level condition.
  • Verified all queries run correctly in MongoDB shell.

These corrections improve accuracy and help new learners avoid confusion.


Checklist

  • I solemnly swear that this is all original content of which I am the original author
  • Pull request title is prepended with [mongodb/en]
  • Pull request touches only one file (mongodb.md)
  • Content changes are aimed at intermediate to experienced programmers
  • YAML Frontmatter formatting verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant