Aggregattion¶
Group¶
Partition the documents into multiple groups based on the specified field
Query('movies').group('year')
new Query('movies').group('year')
Count¶
Count the number of documents in the sequence
Query('movies').count()
new Query('movies').count()
Sum¶
Sum the specified field of the sequence
Query('movies').sum('rating')
new Query('movies').sum('rating')
Average¶
Average the specified field of the sequence
Query('movies').avg('rating')
new Query('movies').avg('rating')
Minimum¶
Find the minimum value of the specified field in the sequence
Query('movies').min('rating')
new Query('movies').min('rating')
Maximum¶
Find the maximum value of the specified field of the sequence
Query('movies').max('rating')
new Query('movies').max('rating')