Skip to content

Add $project stage tests#126

Open
danielfrankcom wants to merge 3 commits intodocumentdb:mainfrom
danielfrankcom:pr/project-stage-tests
Open

Add $project stage tests#126
danielfrankcom wants to merge 3 commits intodocumentdb:mainfrom
danielfrankcom:pr/project-stage-tests

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

This change introduces tests for the $project aggregation stage.

I also renamed three error code constants to better reflect their semantics. These weren't used elsewhere as they were added recently based on my first cut at these tests.

@danielfrankcom danielfrankcom requested a review from a team as a code owner April 20, 2026 22:27
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Copy link
Copy Markdown
Collaborator

@eerxuan eerxuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cross checking with PR132, no test for not exist collection. collection.drop() then run command. This case is stages specific, so need in every stage. stage like $collStats will fail.

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.

3 participants