Skip to content

client.hasDatabase()

Oxford Harrison edited this page Nov 15, 2024 · 4 revisions

DOCSAPIClient API


Check if a database exists.

Syntax

client.hasDatabase(
    name: string,
): Promise<boolean>;
Param Interfaces Description
name - A database name.

Usage

Check if database exists:

const exists = await client.hasDatabase('database_1');
console.log(exists); // true | false
Clone this wiki locally