Contextual information about the hook.
The query to use instead of the original query specified by the caller. Returning a rejected promise will block the operation and will return a rejected promise to the operation caller as well as trigger the onFailure()
hook.
The original query as specified by the caller.