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
When there is a capped collection in the project, it is impossible to call remove() on it (MongoError, only drop() works).
But mongoose_fixtures.js does exactly that.
So everything dies.
I suggest to add a clause for isCapped() -> true which would clone -> drop -> rename collection as a safe way of cleaning.
The text was updated successfully, but these errors were encountered:
When there is a capped collection in the project, it is impossible to call
remove()
on it (MongoError, onlydrop()
works).But
mongoose_fixtures.js
does exactly that.So everything dies.
I suggest to add a clause for
isCapped() -> true
which wouldclone -> drop -> rename
collection as a safe way of cleaning.The text was updated successfully, but these errors were encountered: