Beispiel #1
0
 private static ISchema CreateSchema()
 {
     return(SchemaFactory.Create <Mutation, RangeDirective, RangeDirectiveType, RangeValidator>(@"
         type Mutation {
             noop(input: Int! @range(from: 1, to: 3)): Boolean
         }
     "));
 }
 private static ISchema CreateSchema()
 {
     return(SchemaFactory.Create <Mutation, EmailDirective, EmailDirectiveType, EmailValidator>(@"
         type Mutation {
             noop(input: String! @email): Boolean
         }
     "));
 }