stargate / stargate-mongoose

Mongoose Node.js package for Apache Cassandra / DataStax Astra

Home Page:https://stargate.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically call createDatabase() from createCollection()

kathirsvn opened this issue · comments

Calling dropDatabase() to clear data in tests is a common pattern in Mongoose code, so calling createCollection() after dropping will return an error.

Originally posted by vkarpov15 in #76 (comment)

This is done in this PR.