Skip to content

Wernfried

My feedback

21 results found

  1. 5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Wernfried commented  · 

    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')

2 Next →

Feedback and Knowledge Base