Doubt related to $addFields / $project

I have a doubt when creating a calculated field, or replacing the value of an existing one. In both cases, if I want to do some operation on this new or replace fields, it needs to be in next stage right? It cannot be done on same one?


Yes, you are right, those new or aggregated fields will be available in the next stages, but not in the current one.

José Carlos

1 Like

Great! Thanks very much!

You are welcome!

José Carlos