Converts query or mutation data into a transport-safe value.
typedef QuerySerializeData = Object? Function(Object? data);