fix(query): query is now passed as a payload