Questions tagged [mongodb-query]

This tag is for questions related to querying and updating MongoDB collections, either through the Mongo shell or using a programming language driver.

Filter by
Sorted by
Tagged with
0 votes
0 answers

Grouping and summing by condition from three mongodb collections

I have three mongodb collections. I would like to group the collections by date, month and year, then sum by condition in order to display totals from the three collections in one table. However, i ...
user20183888's user avatar
2 votes
0 answers

Return aggregated values

It's the first time a write a non-trivial mongodb query, and I came up with one that does work, but is 123 lines long! Surely there must be a way to write it in a more concise way. The purpose of the ...
user000001's user avatar
2 votes
1 answer

Aggregate query for drawing temporal statistic

I used to write simple Mongo queries, but this time I had to create an aggregate query. The purpose is to draw temporal statistic on the main page of my web app. I'm not confident about his ...
Opsse's user avatar
  • 287