Support querying Regex objects stored in MongoDB

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      { field: { eq: Regex } }
      

      is not supported ATM as it will always end to 

       

      { field: Regex }

       

       for matching the regex.

      Specifying the $eq
      operator is equivalent to using the form { field: } except when the is a regular expression. See below for examples.

      The current behavior for find(field, new Regex()) should stay the same (matching the regex), but find(field, '=', new Regex()) must generate

      { field: { eq: Regex } }

            Assignee:
            Unassigned
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: