Skip to content

Wernfried

My feedback

23 results found

  1. 1 vote

    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

    started  ·  2 comments  ·  MongoDB Shell » Commands  ·  Admin →
    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  · 

    Most of these terms are deprecated and exist only for backward compatibility. For example 'db.isMaster()' is already replaced by 'db.hello()isWritablePrimary' or 'slaveDelay' became 'secondaryDelaySecs'

  2. 3 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)
    Wernfried supported this idea  · 
  3. 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