pub fn to_value<T: Serialize>(value: T) -> Result<ConstValue, SerializerError>
Expand description

Convert a T into ConstValue which is an enum that can represent any valid GraphQL data.