Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make model operations wait on Model.init()? #8815

Open
vkarpov15 opened this issue Apr 18, 2020 · 0 comments
Open

Make model operations wait on Model.init()? #8815

vkarpov15 opened this issue Apr 18, 2020 · 0 comments

Comments

@vkarpov15
Copy link
Collaborator

Re: #8786 , other issues.

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.

Also see #8814

@vkarpov15 vkarpov15 added this to the Parking Lot milestone Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant