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

    Function beforeGet

    • Parameters

      • itemId: ItemID

        The ID of the original item to be retrieved.

      • context: HookContext

        The ID of the original item to be retrieved.

      Returns ItemID | Promise<ItemID>

      The ID to be used for the get() operation instead of the original itemId specified by the caller. Returning a rejected promise will block the operation and will return a rejected promise to the caller as well as trigger the onFailure() hook.

      A hook that is triggered before a get() operation.