Method: OrientSupport::OrientQuery#group
- Defined in:
- lib/support/orientquery.rb
#group(value = nil) ⇒ Object Also known as: group_by
568 569 570 571 572 573 574 575 |
# File 'lib/support/orientquery.rb', line 568 def group value = nil if value.present? @q[:group] << value self elsif @q[:group].present? "group by #{@q[:group].join(', ')}" end end |