is there select count(id) from tb group by id syntax in mongoid?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      hi all,
      is there count aggregate functions in mongoid?
      for example select count(id) from tb group by id syntax in mongoid?

      thanks in advance

            Assignee:
            Unassigned
            Reporter:
            wyh770406
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: