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
In case when strict equals "throw" the json schema will get additionalProperties: false (the same behavior will be repeated for all nested mongoose schemas, but it could be overrided in the nested schema).
It is also possible that the global flag could be added to define default behavior).
Hi, didn't find any docs / example related to
additionalProperties
. By default, MongoDB keeps this as true.How can make it
additionalProperties: false
globally, so that child objects are also validated.Is this possible
The text was updated successfully, but these errors were encountered: