Class GetCursor<T>

Wrapper around a REST GET request

Type Parameters

  • T

Hierarchy

  • GetCursor

Constructors

  • Type Parameters

    • T

    Parameters

    • client: Pick<main, "request">
    • resource: string
    • query: URLSearchParams = ...

    Returns GetCursor<T>

Properties

client: Pick<main, "request">
continuationToken: null | Partial<T> = null
hasNextBatch: boolean = true
query: URLSearchParams = ...
resource: string

Methods

  • Returns

    boolean

    Returns boolean

  • Run the provided function for each element in the cursor.

    Returns

    Promise

    Type Parameters

    • R

    Parameters

    • fn: ((t: T) => R)

      callback function

        • (t: T): R
        • Parameters

          • t: T

          Returns R

    Returns Promise<void>

  • Returns

    continuation token

    Returns null | Partial<T>

  • Returns

    full cursor contents as an array

    Returns Promise<T[]>

Generated using TypeDoc