Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-322

$in and regular expressions

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.3.4
    • Affects Version/s: None
    • Component/s: Querying
    • None

      Do you plan to support regular expressions in $in queries ?

      http://pastie.org/636463

      > j =

      { name: "mongo"}

      ;

      {"name" : "mongo"}

      > db.things.save(j);
      > db.things.find(

      {name: /.*mongo.*/i}

      );

      {"_id" : ObjectId( "4ac3312ffce86d635643cb7c") , "name" : "mongo"}

      > db.things.find({name:{$in: [/.*mongo.*/i]}});
      >

            Assignee:
            aaron Aaron Staple
            Reporter:
            nicolas_ Nicolas Fouché
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: