Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7513

Clarify why you would use $in vs. $or

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server

    Description

      RE: "When using $or with <expressions> that are equality checks for the value of the same field, use the $in operator instead of the $or operator."

      Why? What happens if I choose to use $or instead of $in?

      It seems like the second clause is ignored. Right?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ianmercer Ian Mercer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago