We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
6.4.4
16.6
5.x
In MongoDB the following are valid expressions, but throw in our TS types.
const nestedAddFieldsExpr: PipelineStage.AddFields = { $addFields: { parent: { nestedField: { $add: ['$a', '$b'] } } } }; const addFieldsArrayElemAt: PipelineStage.AddFields = { $addFields: { parent: { child: { $arrayElemAt: ['$someArray', 0] } } } };
The current types only support flat-level fields, and the only way we can achieve that is by changing it in the code to:
'parentPath.nestedPath': { $add: [1, 2] }
It should support nested paths.
The text was updated successfully, but these errors were encountered:
Looks like this was fixed by same fix as #12096 , fix will be in 6.4.5
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Mongoose version
6.4.4
Node.js version
16.6
MongoDB server version
5.x
Description
In MongoDB the following are valid expressions, but throw in our TS types.
The current types only support flat-level fields, and the only way we can achieve that is by changing it in the code to:
Expected Behavior
It should support nested paths.
The text was updated successfully, but these errors were encountered: