Fires2REST - v0.3.0
    Preparing search index...

    Class CollectionReference<T>

    A reference to a Firestore collection. Extends Query to provide query methods.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: string
    path: string

    Methods

    • Creates a new query ending at the provided values (inclusive).

      Parameters

      • ...values: unknown[]

      Returns Query<T>

    • Creates a new query ending before the provided values (exclusive).

      Parameters

      • ...values: unknown[]

      Returns Query<T>

    • Creates a new query that returns only the first matching documents.

      Parameters

      • count: number

      Returns Query<T>

    • Creates a new query that returns only the last matching documents. Must be used with at least one orderBy clause.

      Parameters

      • count: number

      Returns Query<T>

    • Creates a new query that skips the first matching documents.

      Parameters

      • count: number

      Returns Query<T>

    • Creates a new query that returns only specific fields.

      Parameters

      • ...fields: string[]

      Returns Query<T>

    • Creates a new query starting after the provided values (exclusive).

      Parameters

      • ...values: unknown[]

      Returns Query<T>

    • Creates a new query starting at the provided values (inclusive).

      Parameters

      • ...values: unknown[]

      Returns Query<T>