Details

    • Backport:
      No
    • # Replies:
      27
    • Last comment by Customer:
      true

      Description

      Dear developers.

      Recently, I've encountered a situation, in which a document contained and integer value with a bitwise flag logic.
      Unfortunately, MongoDB's $and and $or do not support bitwise logic.
      Is it possible to implement that? Should it be filed as a feature request?

      Thank you.

        Issue Links

          Activity

          Hide
          Roshan Bhandari
          added a comment -

          I would really appreciate if there were bitwise query operators ($bitand, $bitor).

          Show
          Roshan Bhandari
          added a comment - I would really appreciate if there were bitwise query operators ($bitand, $bitor).
          Hide
          Jake W
          added a comment -

          Would really like to have this feature. Our data will be processed by different flows, and we need a field to record which flows have been run with the data. A single int field is good to record flow types via bitwise 'or', and then querying a specific flow type, we will need bitwise 'and'.

          Show
          Jake W
          added a comment - Would really like to have this feature. Our data will be processed by different flows, and we need a field to record which flows have been run with the data. A single int field is good to record flow types via bitwise 'or', and then querying a specific flow type, we will need bitwise 'and'.
          Hide
          Jeremy
          added a comment -

          Bump on this issue. 81 votes and still not assigned to anyone?

          Show
          Jeremy
          added a comment - Bump on this issue. 81 votes and still not assigned to anyone?
          Hide
          Fred
          added a comment -

          +1 for this feature. Would be really great addition.

          Show
          Fred
          added a comment - +1 for this feature. Would be really great addition.
          Hide
          Hans Stevens
          added a comment -

          +1 for this feature!

          Show
          Hans Stevens
          added a comment - +1 for this feature!

            People

            • Votes:
              87 Vote for this issue
              Watchers:
              53 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since reply:
                5 weeks ago
                Date of 1st Reply: