$in and regular expressions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.3.4
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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 Staple (Inactive)
            Reporter:
            Nicolas Fouché
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: