• Parameters

    • count: number

      The number of items the count operation has found.

    • context: HookContext

      Contextual information about the hook.

    Returns Promise<number> | number

    The count to return to count() instead of the original count. Returning a rejected promise will not block the operation, but will return a rejected promise to the caller as well as trigger the onFailure() hook.

    A hook that is triggered after a count() operation.