public static ISchemaBuilder AddSchemaRegistry(
            this ISchemaBuilder builder,
            bool addRootTypes = true)
        {
            if (addRootTypes)
            {
                builder
                .AddQueryType(d => d.Name("Query"))
                .AddMutationType(d => d.Name("Mutation"))
                .AddSubscriptionType(d => d.Name("Subscription"));
            }

            return(builder
                   .AddType <EnvironmentQueries>()
                   .AddType <EnvironmentMutations>()
                   .AddType <SchemaQueries>()
                   .AddType <SchemaMutations>()
                   .AddType <SchemaSubscriptions>()
                   .AddType <SchemaExtension>()
                   .AddType <SchemaVersionExtension>()
                   .AddType <SchemaPublishReportExtension>()
                   .AddType <ClientQueries>()
                   .AddType <ClientMutations>()
                   .AddType <ClientExtension>()
                   .AddType <ClientVersionExtension>()
                   .AddType <QueryDocumentExtension>()
                   .BindClrType <string, StringType>()
                   .BindClrType <Guid, IdType>());
        }
Пример #2
0
 public static ISchemaBuilder AddStarWarsTypes(
     this ISchemaBuilder builder)
 {
     return(builder
            .AddQueryType <QueryType>()
            .AddMutationType <MutationType>()
            .AddSubscriptionType <SubscriptionType>()
            .AddType <HumanType>()
            .AddType <DroidType>()
            .AddType <EpisodeType>());
 }
Пример #3
0
 public override ISchemaBuilder AddGraphQlServices(ISchemaBuilder builder)
 {
     return(builder
            .AddQueryType <WebsocketQueries>());
 }
Пример #4
0
        public static ISchemaBuilder RegisterQuerys(this ISchemaBuilder schemaBuilder)
        {
            schemaBuilder.AddQueryType <ObjectType <UserUseCase> >();

            return(schemaBuilder);
        }
Пример #5
0
 public override ISchemaBuilder AddGraphQlServices(ISchemaBuilder builder)
 {
     return(builder
            .AddQueryType <PaymentWebhookQueries>());
 }
Пример #6
0
 public override ISchemaBuilder AddGraphQlServices(ISchemaBuilder builder)
 {
     return(builder
            .AddQueryType <PermissionQueries>()
            .AddMutationType <PermissionMutations>());
 }
Пример #7
0
 public override ISchemaBuilder AddGraphQlServices(ISchemaBuilder builder)
 {
     return(builder
            .AddQueryType <ClubMemberQueries>()
            .AddMutationType <ClubMemberMutations>());
 }
Пример #8
0
 public static ISchemaBuilder AddApi(this ISchemaBuilder builder) =>
 builder
 .AddQueryType <Query>()
 .AddMutationType <Mutation>();
Пример #9
0
 public override ISchemaBuilder AddGraphQlServices(ISchemaBuilder builder)
 {
     return(builder
            .AddQueryType <EventParticipantQueries>()
            .AddMutationType <EventParticipantMutations>());
 }
Пример #10
0
 public override ISchemaBuilder AddGraphQlServices(ISchemaBuilder builder)
 {
     return(builder.AddQueryType <IdentityQueries>()
            .AddMutationType <IdentityMutations>());
 }
Пример #11
0
 public override ISchemaBuilder AddGraphQlServices(ISchemaBuilder builder)
 {
     return(builder
            .AddQueryType <Template1Queries>()
            .AddMutationType <Template1Mutations>());
 }