Skip to content

Added an example of how to use cond #1073

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

Conversation

dmorehouse
Copy link

Feel free to reformat this but please accept this example of how to use cond. The current docs are 100% accurate however, after reading them, it still wasn't obvious how to use the cond statement in the aggregation framework. Googling only returned a single page that actually had an example on it. An example like this would have been VERY helpful to me and hopefully others find this helpful as well.

@tychoish
Copy link
Contributor

Thanks for the contribution!

Could you please sign the MongoDB/10gen Contributor agreement: http://www.10gen.com/legal/contributor-agreement and I'll work to get this merged in as soon as possible.

Cheers,
sam

@tychoish tychoish closed this Jun 26, 2013
@tychoish tychoish reopened this Jun 26, 2013
@tychoish
Copy link
Contributor

Thanks for the contribution, I'm going to go ahead and close this pull request. We've added a related example as part of changes to the syntax of $cond in the 2.5/2.6 series.

I look forward to seeing your future contributions.

Cheers,
sam

@tychoish tychoish closed this Nov 22, 2013
mongo-cr-bot pushed a commit that referenced this pull request May 9, 2022
* DOCSP-22392-KMIP-downgrade-instructions

* DOCSP-22392-KMIP-downgrade-instructions

* DOCSP-22392-KMIP-downgrade-instructions

Co-authored-by: jason-price-mongodb <[email protected]>
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 23, 2025
(cherry picked from commit 4fd23db)
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