/// <summary> /// Initializes a new instance of the <see cref="BaseParameter" /> class. /// </summary> /// <param name="name">The name.</param> /// <param name="value">The value.</param> /// <param name="type">The type.</param> /// <param name="token">The token.</param> public BaseParameter(string name, object value, Type type, string token = null) { _name = name; _token = string.IsNullOrEmpty(token) ? GraphQLCommon.GetToken() : token; _value = value; _type = type; }
/// <summary> /// Types this instance. /// </summary> /// <returns></returns> public string Type() => GraphQLCommon.GetScalarType(_type);