Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Reference

Index

Constructors

constructor

Properties

Readonly db

Readonly endpoint

endpoint: string

id

id: string

The ID of the document inside the collection

isRoot

isRoot: boolean

Whether or not this reference points to the root of the database

Readonly name

name: string

path

path: string

The path to the document relative to the database root

Accessors

isCollection

  • get isCollection(): boolean
  • Returns true if this reference is a collection

    Returns boolean

parent

parentCollection

Methods

add

child

delete

get

list

  • list(options?: undefined | object): Promise<List>
  • Returns all documents in the collection

    Parameters

    • Optional options: undefined | object

    Returns Promise<List>

query

  • query(options?: {}): Query
  • Queries the child documents/collections of this reference.

    Parameters

    • Default value options: {} = {}

    Returns Query

set

  • Create a new document or overwrites an existing one matching this reference.

    Parameters

    Returns Promise<void | Reference>

toJSON

  • toJSON(): { referenceValue: string }
  • Returns { referenceValue: string }

    • referenceValue: string

update

  • Updates a document while ignoring all missing fields in the provided object.

    Parameters

    Returns Promise<void | Reference>

Legend

Generated using TypeDoc