SDK
SDK Javascript v6.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

adminExists #

Checks that an administrator account exists.


Copied to clipboard!
adminExists([options]);

Arguments Type Description
options
object
Query options

Options #

Additional query options

Property Type
(default)
Description
queuable
boolean

(true)
If true, queues the request during downtime, until connected to Kuzzle again

Resolve #

Resolves to a boolean set to true if an admin exists and false if it does not.

Usage #

Copied to clipboard!
try {
  const exists = await kuzzle.server.adminExists();
  console.log('Admin exists?', exists);
} catch (error) {
  console.error(error.message);
}