You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I get MongoError: Invalid $addFields :: caused by :: The body function must be specified. unless I add .option({ serializeFunctions: true }), similar to #9364.
Also, I have the object-shorthand eslint rule turned on and it turns:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I get
MongoError: Invalid $addFields :: caused by :: The body function must be specified.
unless I add.option({ serializeFunctions: true })
, similar to #9364.Also, I have the
object-shorthand
eslint rule turned on and it turns:into:
which gives a
MongoError: SyntaxError: unexpected token: '{'
error.If the current behavior is a bug, please provide the steps to reproduce.
root/tsconfig.json
root/subfolder/tsconfig.json
What is the expected behavior?
It should serialize by default, similar to $accumulator.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongo 4.4.3, Mongoose 5.10.11, Node 14.15.0
The text was updated successfully, but these errors were encountered: