Run beforeQuery on get.