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
<h3id="copy-schema-options-in-schema-prototype-add"><ahref="#copy-schema-options-in-schema-prototype-add">Copy Schema options in <code>Schema.prototype.add()</code></a></h3>
222
+
223
+
Mongoose now copies user defined schema options when adding one schema to another.
224
+
For example, `childSchema` below will get `baseSchema`'s `id` and `toJSON` options.
0 commit comments