Options
All
  • Public
  • Public/Protected
  • All
Menu

Firebase Cloud Firestore Event Tools.

namespace

Index

Functions

  • addDocument(collectionName: string, variable: Variable, callbackStateVariable?: Variable): void
  • deleteDocument(collectionName: string, documentName: string, callbackStateVariable?: Variable): void
  • deleteField(collectionName: string, documentName: string, field: string, callbackStateVariable?: Variable): void
  • executeQuery(queryID: string, callbackValueVariable?: Variable, callbackStatusVariable?: Variable): void
  • getDocument(collectionName: string, documentName: string, callbackValueVariable?: Variable, callbackStateVariable?: Variable): void
  • getField(collectionName: string, documentName: string, field: string, callbackValueVariable?: Variable, callbackStateVariable?: Variable): void
  • getServerTimestamp(): string
  • hasDocument(collectionName: string, documentName: string, callbackValueVariable?: Variable, callbackStateVariable?: Variable): void
  • hasField(collectionName: string, documentName: string, field: string, callbackValueVariable?: Variable, callbackStateVariable?: Variable): void
  • listDocuments(collectionName: string, callbackValueVariable?: Variable, callbackStateVariable?: Variable): void
  • queryLimit(queryID: string, amount: number, last: boolean): void
  • Limits the amount of documents returned by the query.

    Parameters

    • queryID: string

      The query to add the filter to.

    • amount: number

      The amount of documents to limit to

    • last: boolean

      If true, limits to the last documents instead of the first documents.

    Returns void

  • queryOrderBy(queryID: string, field: string, direction: OrderByDirection): void
  • querySkipSome(queryID: string, value: number, before: boolean, includeSelf: boolean): void
  • Makes a query skip documents after or before a certain value of a field the query was ordered with.

    Parameters

    • queryID: string

      The query to add the filter to.

    • value: number

      The value of the field ordered by.

    • before: boolean

      If set to true, all documents before the document are skipped, else all documents after it are skipped.

    • includeSelf: boolean

      If set to true, doesn't skip the document.

    Returns void

  • queryWhere(queryID: string, field: string, op: "<" | "<=" | "==" | "!=" | ">=" | ">" | "array-contains", value: string | number): void
  • Filters out documents whose fields do not match a condition from a query.

    Parameters

    • queryID: string

      The query to add the filter to.

    • field: string

      The field to run the condition on.

    • op: "<" | "<=" | "==" | "!=" | ">=" | ">" | "array-contains"

      The condition operator.

    • value: string | number

      The value to check against.

    Returns void

  • startQuery(queryID: string, collectionName: string): void
  • startQueryFrom(queryID: string, sourceQueryID: string): void
  • updateDocument(collectionName: string, variableName: string, variable: Variable, callbackStateVariable?: Variable): void
  • updateField(collectionName: string, documentName: string, field: string, value: any, callbackStateVariable?: Variable): void
  • Updates a field of a document.

    Parameters

    • collectionName: string

      The collection where the document is stored.

    • documentName: string

      The name of the document where to update a field.

    • field: string

      The field where to update.

    • value: any

      The value to write.

    • Optional callbackStateVariable: Variable

    Returns void

  • watchQuery(queryID: string, callbackValueVariable?: Variable, callbackStatusVariable?: Variable): void
  • writeDocument(collectionName: string, variableName: string, variable: Variable, callbackStateVariable?: Variable): void
  • writeField(collectionName: string, documentName: string, field: string, value: any, callbackStateVariable?: Variable, merge?: boolean): void
  • Writes a field of a document.

    Parameters

    • collectionName: string

      The collection where to store the document.

    • documentName: string

      The name of the document where to write a field.

    • field: string

      The field where to write.

    • value: any

      The value to write.

    • Optional callbackStateVariable: Variable
    • merge: boolean = true

    Returns void

Generated using TypeDoc