Handles the AutoPayloadType annotation if present

Return

the result of the mutation, possibly wrapped due to AutoPayloadType

Parameters

res

the result of the mutation