@jiway/firestorm-core - v1.1.1
    Preparing search index...

    Class StartBlock

    Initial query block of a query.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Accessors

    • get hasNext(): boolean

      Check whether or not this block as a following block

      Returns boolean

    • get leaf(): QueryBuildBlock

      Gets a reference to the block at the end of the chain

      Returns QueryBuildBlock

    • get next(): QueryBuildBlock | null

      A reference to the next query block or null if this block is the last

      Returns QueryBuildBlock | null

    • set next(value: QueryBuildBlock | null): void

      Sets the reference to the next query block

      Parameters

      Returns void

    • get previous(): QueryBuildBlock | null

      A reference to the previous query block if this block is the first

      Returns QueryBuildBlock | null

    • set previous(value: QueryBuildBlock | null): void

      Sets the reference to the previous query block

      Parameters

      Returns void

    • get root(): QueryBuildBlock

      Gets a reference to the block at the start of the chain

      Returns QueryBuildBlock

    Methods

    • Converts this block to the corresponding query constraint

      Returns null

    • Converts the full chain to a firebase set of query constraints

      Returns QueryConstraint[]

      Firebase query constraints equivalent to this query

    • Appends a where clause to the query

      Parameters

      • field: string

        Field on which the where clause is applied

      • operator: WhereFilterOp

        Operator of the clause

      • value: unknown

        Value to check against the value of the field against

      Returns WhereBlock

      The WhereBlock appended to the query