-
-
Couldn't load subscription status.
- Fork 2
client.hasDatabase()
Oxford Harrison edited this page Nov 15, 2024
·
4 revisions
DOCS • API • Client API
Check if a database exists.
client.hasDatabase(
name: string,
): Promise<boolean>;| Param | Interfaces | Description |
|---|---|---|
name |
- | A database name. |
Check if database exists:
const exists = await client.hasDatabase('database_1');
console.log(exists); // true | false