Represents an Analyzer in a database.Database.

Accessors

Methods

Accessors

  • get name(): string
  • Name of this Analyzer.

    See also database.Database.

    Returns string

Methods

  • Deletes the Analyzer from the database.

    Parameters

    • force: boolean = false

      Whether the Analyzer should still be deleted even if it is currently in use.

    Returns Promise<ArangoApiResponse<{
        name: string;
    }>>

    Example

    const db = new Database();
    const analyzer = db.analyzer("some-analyzer");
    await analyzer.drop();
    // the Analyzer "some-analyzer" no longer exists
  • Checks whether the Analyzer exists.

    Returns Promise<boolean>

    Example

    const db = new Database();
    const analyzer = db.analyzer("some-analyzer");
    const result = await analyzer.exists();
    // result indicates whether the Analyzer exists