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

    Class LimitBlock

    A limit query block that restricts the amount of documents retrieved by a number

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Creates a limit query block that restricts the amount of documents retrieved by a number

      Parameters

      • limit: number

        The amount of documents retrieved at most

      • from: LimitClauseDirection

        If the limit is applied to the starting documents retrieved or the ending

      Returns LimitBlock

    Properties

    If the limit is applied to the starting documents retrieved or the ending

    limit: number

    The amount of documents retrieved at most

    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 QueryLimitConstraint

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

      Returns QueryConstraint[]

      Firebase query constraints equivalent to this query