示例#1
0
 protected override void Configure(IObjectTypeDescriptor <Author> descriptor)
 {
     //base.Configure(descriptor);
     descriptor.Field(x => x.Secret).Ignore();
 }
示例#2
0
 protected override void Configure(
     IObjectTypeDescriptor <Query> descriptor)
 {
     descriptor.Name("Query");
     descriptor.Field(t => t.GetTest()).Name("test");
 }
示例#3
0
 protected override void Configure(IObjectTypeDescriptor <Alien> descriptor)
 {
     descriptor.Interface <SentientType>();
     descriptor.Field(t => t.Name).Type <NonNullType <StringType> >();
 }
示例#4
0
 protected override void Configure(
     IObjectTypeDescriptor descriptor)
 {
     descriptor.Name("Query");
     descriptor.Field("description").Resolver("bar");
 }
示例#5
0
 private static void RegisterContactResource(IObjectTypeDescriptor descriptor)
 {
     descriptor.Field <ContactResolver>(t => t.CreateNewContact(default))
示例#6
0
 protected override void Configure(IObjectTypeDescriptor <Query> descriptor)
 {
     descriptor.Field(t => t.Cats(default, default))
示例#7
0
 protected override void Configure(IObjectTypeDescriptor <Style> descriptor)
 {
     base.Configure(descriptor);
     descriptor.Field(b => b.ParentId).Ignore();
 }
示例#8
0
 protected override void Configure(IObjectTypeDescriptor <Enrollment> descriptor)
 {
     descriptor.Include <EnrollmentResolvers>();
 }
示例#9
0
文件: SongType.cs 项目: markotny/inz
 protected override void Configure(IObjectTypeDescriptor <Song> descriptor)
 {
 }
示例#10
0
 protected override void Configure(IObjectTypeDescriptor <GitLocalRepository> descriptor)
 {
     descriptor
     .Field("service")
     .ResolveWith <Resolvers>(x => x.GetConnectedServiceAsync(default !, default !, default !));
示例#11
0
 protected override void Configure(IObjectTypeDescriptor <RootQuery> descriptor)
 {
     descriptor
     .Field <TestResolver>(r => r.RunLargeTest(default, default, default, default))
示例#12
0
 protected override void Configure(IObjectTypeDescriptor <Mutation> descriptor)
 {
     descriptor.Field(f => f.CreateArticle(default(Article)))
     .Type <NonNullType <ArticleType> >()
     .Argument("article", a => a.Type <NonNullType <ArticleInputType> >());
 }
示例#13
0
 protected override void Configure(IObjectTypeDescriptor <Author> descriptor)
 {
     descriptor
     .Field(t => t.Books)
     .ResolveWith <Resolvers>(t => t.GetBooks(default !, default !))
示例#14
0
 protected override void Configure(IObjectTypeDescriptor <PaginationPayload <T> > descriptor)
 {
     descriptor.Field(x => x.FieldType)
     .Name("list");
 }
示例#15
0
        protected override void Configure(IObjectTypeDescriptor <WeatherInfosQuery> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Field(f => f.GetWeatherInfos(default));
        protected override void Configure(IObjectTypeDescriptor <Starship> descriptor)
        {
            descriptor.Field(t => t.Id)
            .Type <NonNullType <IdType> >();

            descriptor.Field <SharedResolvers>(t => t.GetLength(default, default));
示例#17
0
 protected override void Configure(IObjectTypeDescriptor descriptor)
 {
     descriptor.Name("subscription");
     descriptor.Field("foo").Resolver(() => "bar");
 }
示例#18
0
        protected override void Configure(IObjectTypeDescriptor <Producer> descriptor)
        {
            base.Configure(descriptor);

            descriptor.Name("Producer");

            descriptor
            .ImplementsNode()
            .IdField(c => c.Id)
            .ResolveNode((ctx, id) =>
                         ctx.DataLoader <ProducersByIdBatchDataLoader>().LoadAsync(id, ctx.RequestAborted));

            descriptor
            .Field(c => c.Picture)
            .Name("picture");

            descriptor
            .Field(c => c.NotSubjectToVat)
            .Name("notSubjectToVat");

            descriptor
            .Field(c => c.CreatedOn)
            .Name("createdOn");

            descriptor
            .Field(c => c.UpdatedOn)
            .Name("updatedOn");

            descriptor
            .Field(c => c.Phone)
            .Name("phone")
            .Authorize(Policies.REGISTERED);

            descriptor
            .Field(c => c.Email)
            .Name("email")
            .Authorize(Policies.REGISTERED)
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.FirstName)
            .Name("firstName")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.LastName)
            .Name("lastName")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Name)
            .Name("name")
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(c => c.Summary)
            .Name("summary");

            descriptor
            .Field(c => c.Description)
            .Name("description");

            descriptor
            .Field(c => c.Facebook)
            .Name("facebook");

            descriptor
            .Field(c => c.Twitter)
            .Name("twitter");

            descriptor
            .Field(c => c.Instagram)
            .Name("instagram");

            descriptor
            .Field(c => c.Website)
            .Name("website");

            descriptor
            .Field(c => c.OpenForNewBusiness)
            .Name("openForNewBusiness");

            descriptor
            .Field(c => c.ClosingsCount)
            .Name("closingsCount");

            descriptor
            .Field(c => c.TagsCount)
            .Name("tagsCount");

            descriptor
            .Field(c => c.PicturesCount)
            .Name("picturesCount");

            descriptor
            .Field("productsCount")
            .ResolveWith <ProducerResolvers>(c => c.GetProductsCount(default !, default !, default, default, default));
示例#19
0
 protected override void Configure(IObjectTypeDescriptor descriptor)
 {
     descriptor.Field <TestUseValidatorWithValidationStrategyAddressMutation>(
         field => field.Test(default !)).Type <StringType>();
示例#20
0
 protected override void Configure(
     IObjectTypeDescriptor <Query> descriptor)
 {
     descriptor.Field(t => t.Hello()).Type <NonNullType <StringType> >();
 }
示例#21
0
 /// <inheritdoc/>
 protected override void ConcreteConfigure(IObjectTypeDescriptor <ItemPocket> descriptor)
 {
     descriptor.Description("Pockets within the players bag used for storing items by category.");
     descriptor.UseNamedApiResourceCollectionField <ItemPocket, ItemCategory, ItemCategoryType>(x => x.Categories);
 }
示例#22
0
 protected override void Configure(IObjectTypeDescriptor <MyShopQuery> descriptor)
 {
     descriptor
     .Field(f => f.GetShop(default !, default !))
示例#23
0
 protected override void Configure(IObjectTypeDescriptor <Model.HoursAttend> descriptor)
 {
     descriptor.Description("Hours Attend");
     descriptor.Field(p => p.Lang)
     .UseDbContext <DrMofradDbContext>()
     .ResolveWith <Resolver>(resolver => resolver.GetLang(default !, default !));
示例#24
0
 protected override void Configure(IObjectTypeDescriptor <Model.Gallery> descriptor)
 {
     descriptor.Description("Galleries");
     descriptor.Field(p => p.GalleryCategory)
     .UseDbContext <DrMofradDbContext>()
     .ResolveWith <Resolvers>(p => p.GetGalleryCategories(default !, default !));
示例#25
0
 protected override void Configure(IObjectTypeDescriptor descriptor)
 {
     RegisterContactResource(descriptor);
 }
示例#26
0
 protected override void Configure(IObjectTypeDescriptor <Query> descriptor)
 {
     descriptor.Field(t => t.GetBeers(default !)).Type <NonNullType <ListType <BeerType> > >()
示例#27
0
 protected override void Configure(IObjectTypeDescriptor <Category> descriptor)
 {
     descriptor.Description("These are the categories for the store");
     descriptor
     .Field(c => c.Products)
     .ResolveWith <Resolvers>(c => c.GetCategories(default !, default !))
 protected override void Configure(IObjectTypeDescriptor <StudentChoiceQuestionOptionDto> descriptor)
 {
     descriptor.Field(e => e.Id);
     descriptor.Field(e => e.QuestionId);
     descriptor.Field(e => e.Text).Type <NonNullType <StringType> >();
 }
示例#29
0
 protected virtual void Configure(IObjectTypeDescriptor descriptor)
 {
 }
示例#30
0
 protected override void Configure(IObjectTypeDescriptor <CloneEf> descriptor)
 {
     descriptor.Field(c => c.Id).Type <NonNullType <IdType> >();
     descriptor.Field(c => c.Name).Type <NonNullType <StringType> >();
     descriptor.Field(c => c.ParentImage).Type <NonNullType <ImageType> >();
 }