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
Mongoose mode doesn't descend into arrays. An object within an array of will have type mixed, unlike in the default JSON mode which will infer the type of the object within the array.
Is this intentional?
Mongoose mode doesn't descend into arrays. An object within an array of will have type
mixed
, unlike in the default JSON mode which will infer the type of the object within the array.Is this intentional?
Repro:
Using
example.json
:With the default mode (json):
With mongoose-mode:
I noticed this while idly investigating the asker's problem in this old StackOverflow question: https://stackoverflow.com/questions/39362065/how-to-create-a-mongoose-schema-from-json.
The text was updated successfully, but these errors were encountered: