• Type Parameters

    Parameters

    • item: CItem

      One of the items of the query result. The hook is called for each item in the results.

    • context: HookContext

      Contextual information about the hook.

    Returns Promise<Record<string, any>> | Record<string, any>

    The item to return to find instead of the item retrieved from the database. Returning a rejected promise will not block the operation, but will return a rejected promise to the operation caller as well as trigger the onFailure() hook.

    A hook that is triggered after a find operation, for each of the items in the query results.