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
So, I really like your idea of having these common schemas, but given how they're built, how would I go about customizing them?
The newest version (3.5) of mongoose doesn't let you call mongoose.model more than once for a given schema, and since you call it in store.js my original plan for changing them (pull your schema in via store, make my changes, and re-model it) is broken.
The text was updated successfully, but these errors were encountered:
Thinking about it some more, I wonder if it wouldn't be more appropriate to just expose the raw schemas on the module, rather than forcing someone to call new Store() to get the models.
So, I really like your idea of having these common schemas, but given how they're built, how would I go about customizing them?
The newest version (3.5) of mongoose doesn't let you call mongoose.model more than once for a given schema, and since you call it in store.js my original plan for changing them (pull your schema in via store, make my changes, and re-model it) is broken.
The text was updated successfully, but these errors were encountered: