Docs Menu

Docs HomeMongoDB Manual

db.getName()

db.getName()
Returns:the current database name.
←  db.getMongo()db.getProfilingStatus() →
Share Feedback
© 2023 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.