Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CrdtFlag

A flag stores a boolean value, that can be changed

let flag = connection.flag_ew("myflag")
await connection.update(
    flag.set(true)
)
let val = await flag.read();

Hierarchy

Implemented by

Index

Properties

Methods

Properties

parent

parent: CrdtFactory

the parent factory

Methods

read

  • read(): Promise<boolean>

set

  • set(value: boolean): ApbUpdateOp
  • Creates an operation to set the flag to the given value. Use Connection.update to send the update to the database.

    Parameters

    • value: boolean

    Returns ApbUpdateOp

Generated using TypeDoc