Wernfried
My feedback
21 results found
-
6 votes
An error occurred while saving the comment
21 results found
Please sign in to leave feedback
Please sign in to leave feedback
No results.
Clear search results
Can be done with a single command:
db.exists() -> db.adminCommand( { listDatabases: 1 , filter: { name: 'db' } } ).databases.length > 0
and
collections.exists() -> db.getCollectionNames().includes('collections')