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

Hierarchy (View Summary)

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(): null | QueryBuildBlock
  • A reference to the next query block or null if this block is the last

    Returns null | QueryBuildBlock

  • set next(value: null | QueryBuildBlock): void
  • Sets the reference to the next query block

    Parameters

    Returns void

  • get previous(): null | QueryBuildBlock
  • A reference to the previous query block if this block is the first

    Returns null | QueryBuildBlock

  • set previous(value: null | QueryBuildBlock): 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