Loading ...
Sorry, an error occurred while loading the content.

OR

Expand Messages
  • SimLev
    Hi there, is there a simple way to perform a search using several condition in OR in addition to AND? e.g. {name:{regex:/^Joh/i} OR lastname:{regex:/mith$/i}
    Message 1 of 1 , May 19, 2011
    • 0 Attachment
      Hi there, is there a simple way to perform a search using several condition in OR in addition to AND?

      e.g. {name:{regex:/^Joh/i} OR lastname:{regex:/mith$/i}

      It could be done running multiple times the find method and joining the resulting arrays, but it should be simpler than that, right?

      Thanks,
      SimLev
    Your message has been successfully submitted and would be delivered to recipients shortly.