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

    Function afterFindOne

    • Type Parameters

      Parameters

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

      The item to return to findOne() instead of the found item. 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 findOne() operation.