- Reference >
- Enumeration Classes >
- MongoDB\Model\DatabaseInfo::isEmpty()
MongoDB\Model\DatabaseInfo::isEmpty()
On this page
Definition
-
MongoDB\Model\DatabaseInfo::isEmpty
Return whether the database has any data.
Return Values
A boolean indicating whether the database has any data.
Examples
The output would then resemble:
See Also
- listDatabases command reference in the MongoDB manual