when using function payloads, the function arguments are now param nams in the query