WeivData API Reference | ExWeiv Apps
    Preparing search index...

    Function afterCount

    • Parameters

      • count: number

        The number of items the count operation has found.

      • context: HookContext

        Contextual information about the hook.

      Returns number | Promise<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.