Skip to content

Conversation

npahucki
Copy link
Collaborator

@npahucki npahucki commented Apr 5, 2025

I was surprised to see $addFields in the list, as it does not modify any data in the database, but instead acts as a $project+, projecting all current fields to the next stage, plus any additional fields you might want to add (like a calculated field). Thus it can do no harm to the database, it can only modify the next stage in the pipeline, just as a $project would do.

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.

1 participant