Basically I'm wondering if it's possible to get the type of the function that's passed into the query/mutation function