Skip to content

example usage of $sum operator #1843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

tushmish
Copy link
Contributor

This example illustrates the usage of $sum operator in two different ways.

  1. sum as total
  2. sum as count.

Similar to other pages on operators, this page will be consistent and comprehensive with the example.

This example illustrates the usage of $sum operator in two different ways. 
1. sum as total
2. sum as count.

Similar to other pages on operators, this page will be consistent and comprehensive with the example.
@kay-kim
Copy link
Contributor

kay-kim commented Jun 26, 2014

Hi. Thank you so much for this contribution. We appreciate your time and effort. Currently we have a project https://jira.mongodb.org/browse/DOCS-3032 to add examples to all aggregation framework as we undergo a rewrite of that section in the manual. As such, we want to use the same collection of documents for much of the aggregation section.

Because of this project, we will be closing this pull request; however, we will make sure that the examples on this page include example of a count as well as a total -- similar to the first two examples in http://docs.mongodb.org/manual/reference/sql-aggregation-comparison/

Thanks again for your work.

Regards,

Kay Kim

@kay-kim kay-kim closed this Jun 26, 2014
mongo-cr-bot pushed a commit that referenced this pull request Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants