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

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.9.2
    • Component/s: API
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: