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
Testing transactions, unique constraints, change streams, etc. is confusing because you need to call Model.init() under the hood to wait for indexes to build and for Mongoose to create the collection (if you set the autoCreate option). It would be great if we could make Mongoose automatically create collections for models and block startSession() and watch() until the collection is created.
Re: #8786 , other issues.
Testing transactions,
unique
constraints, change streams, etc. is confusing because you need to callModel.init()
under the hood to wait for indexes to build and for Mongoose to create the collection (if you set theautoCreate
option). It would be great if we could make Mongoose automatically create collections for models and blockstartSession()
andwatch()
until the collection is created.Also see #8814
The text was updated successfully, but these errors were encountered: