Ejemplo n.º 1
0
        public static IList CreateOutputList(GraphQLInputType inputType, ISchemaRepository schemaRepository)
        {
            IList output = (IList)Activator.CreateInstance(
                ReflectionUtilities.CreateListTypeOf(
                    schemaRepository.GetInputSystemTypeFor(inputType)));

            return(output);
        }
Ejemplo n.º 2
0
        public GraphQLValue GetAstValue(GraphQLInputType type, ISchemaRepository schemaRepository)
        {
            if (!this.IsSet)
            {
                return(null);
            }

            return(type.GetAstFromValue(this.Value, schemaRepository));
        }
Ejemplo n.º 3
0
 public string GetSerialized(GraphQLInputType type, ISchemaRepository schemaRepository)
 {
     return(this.GetAstValue(type, schemaRepository)?.ToString());
 }