Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1107

Query.LT, LTE and other similar methods require a name while it should be optional

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.2
    • API
    • None

    Description

      Look at example for elemMatch: http://docs.mongodb.org/manual/reference/operator/query/elemMatch/#op._S_elemMatch

      Try to create such a query:
      { results: { $elemMatch:

      { $gte: 80, $lt: 85 }

      } }

      It should look something like this:
      Query.ElemMatch("results", Query.And(Query.GTE(80), Query.LT(85)))

      But it is not possible, since GTE, GT, LTE, LT and all other similar methods require a name. It will either throw null reference, or, if you set any name, query will not return any results.

      Attachments

        Activity

          People

            Unassigned Unassigned
            maxbl4 Vladimir Perevalov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: