public static IList CreateOutputList(GraphQLInputType inputType, ISchemaRepository schemaRepository) { IList output = (IList)Activator.CreateInstance( ReflectionUtilities.CreateListTypeOf( schemaRepository.GetInputSystemTypeFor(inputType))); return(output); }
public GraphQLValue GetAstValue(GraphQLInputType type, ISchemaRepository schemaRepository) { if (!this.IsSet) { return(null); } return(type.GetAstFromValue(this.Value, schemaRepository)); }
public string GetSerialized(GraphQLInputType type, ISchemaRepository schemaRepository) { return(this.GetAstValue(type, schemaRepository)?.ToString()); }