Exemple #1
0
 public override object VisitSchemaDef(GraphQLSchemaParser.SchemaDefContext context)
 {
     using (new FieldConsumer(this, schemaInfo.Schema))
     {
         return(base.VisitSchemaDef(context));
     }
 }
Exemple #2
0
        public override object VisitSchemaDef(GraphQLSchemaParser.SchemaDefContext context)
        {
            var fields = context.objectDef().fieldDef().Select(f => VisitFieldDef(f)).Cast <Field>().ToList();

            schemaInfo.Schema.AddRange(fields);
            return(null);
        }