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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.9.2
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Vladimir Perevalov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: