MongoDB Plugin
  1. MongoDB Plugin
  2. GPMONGODB-85

Support sum projection with createCriteria

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0.M6
    • Fix Version/s: 1.0.0.RC2
    • Labels:
      None
    • Environment:
      Grails 1.3.7,JDK 1.6,

      Description

      My code is like this:

      def result = InstanceDataValidity.createCriteria().list{//use get will not get the right result
      projections

      { sum("successCount") sum("failureCount") }

      between("lastUpdated", beginTime, endTime)
      eq("appInstanceId", appInstance.id)
      }

      From the code,i can not see sum projections process,it's a bug?

        Activity

        Hide
        Graeme Rocher added a comment -

        sum project doesn't seem to be supported atm

        Show
        Graeme Rocher added a comment - sum project doesn't seem to be supported atm

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Ford Guo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: