Represents a mutable CRDT register that can be set to a specific value when updating a document.

This class can't be instantiated directly, it's returned automatically for any register property of a document within an update block via MutableDocumentPath.register.

Not available in React Native environments.

Use DQL (Ditto Query Language) instead. For more information see: https://ditto.com/link/dql-legacy-to-dql-adoption

Hierarchy (view full)

Accessors

Methods

Accessors

  • get value(): any
  • Returns the value of the register.

    Not available in React Native environments.

    Returns any

    Use DQL (Ditto Query Language) instead. For more information see: https://ditto.com/link/dql-legacy-to-dql-adoption

  • set value(value): void
  • Convenience setter, equivalent to set().

    Not available in React Native environments.

    Parameters

    • value: any

    Returns void

    Use DQL (Ditto Query Language) instead. For more information see: https://ditto.com/link/dql-legacy-to-dql-adoption

Methods