protected override void Configure(IInputObjectTypeDescriptor<LineString> descriptor)
        {
            descriptor.BindFieldsExplicitly();

            descriptor.Field(_typeFieldName).Type<EnumType<GeoJSONGeometryType>>();
            descriptor.Field(_coordinatesFieldName).Type<ListType<GeoJSONPositionScalar>>();
            descriptor.Field(_crsFieldName).Type<IntType>();
        }
예제 #2
0
        protected override void Configure(IInputObjectTypeDescriptor <JSDependency> descriptor)
        {
            descriptor.BindFieldsExplicitly();

            descriptor.Field(t => t.Name)
            .Description("Dependency name")
            .Type <NonNullType <StringType> >();
        }
예제 #3
0
        protected override void Configure(IInputObjectTypeDescriptor <UserClaimsInput> descriptor)
        {
            descriptor.Name(nameof(UserClaimsInput));

            descriptor.BindFieldsExplicitly();

            descriptor.Field(o => o.UserId).Type <NonNullType <UuidType> >();
            descriptor.Field(o => o.ClaimIds).Type <NonNullType <ListType <NonNullType <UuidType> > > >();
        }
예제 #4
0
        protected override void Configure(IInputObjectTypeDescriptor <ModuleReplacement> descriptor)
        {
            descriptor.BindFieldsExplicitly();

            descriptor.Field(f => f.Name)
            .Type <NonNullType <StringType> >();

            descriptor.Field(f => f.Link)
            .Type <UrlType>();
        }
예제 #5
0
        protected override void Configure(IInputObjectTypeDescriptor <ClaimInput> descriptor)
        {
            descriptor.Name(nameof(ClaimInput));

            descriptor.BindFieldsExplicitly();

            descriptor.Field(o => o.Id).Type <NonNullType <UuidType> >();
            descriptor.Field(o => o.Name).Type <NonNullType <StringType> >();
            descriptor.Field(o => o.Description).Type <NonNullType <StringType> >();
            descriptor.Field(o => o.Value).Type <NonNullType <StringType> >();
        }
예제 #6
0
        protected override void Configure(IInputObjectTypeDescriptor <CodingSkillEntity> descriptor)
        {
            Name = "CodingSkillInput";
            descriptor.BindFieldsExplicitly();

            descriptor.Field(x => x.Name)
            .Description("Coding skill name");

            descriptor.Field(x => x.Level)
            .Type <NonNullType <CodingSkillLevelType> >()
            .Description("Coding skill level");
        }
예제 #7
0
        protected override void Configure(IInputObjectTypeDescriptor <ApplicationUser> descriptor)
        {
            descriptor.BindFieldsExplicitly();

            descriptor.Name("AccountInput");

            descriptor.Field(t => t.Nickname)
            .Type <NonNullType <StringType> >();

            descriptor.Field(t => t.ProfilePicUrl)
            .Type <NonNullType <StringType> >();
        }
예제 #8
0
        protected override void Configure(IInputObjectTypeDescriptor <UserInput> descriptor)
        {
            descriptor.Name(nameof(UserInput));

            descriptor.BindFieldsExplicitly();

            descriptor.Field(o => o.Id).Type <NonNullType <UuidType> >();
            descriptor.Field(o => o.UserName).Type <NonNullType <StringType> >();
            descriptor.Field(o => o.Email).Type <NonNullType <StringType> >();
            descriptor.Field(o => o.PhoneNumber).Type <NonNullType <StringType> >();
            descriptor.Field(o => o.TwoFactorEnabled).Type <NonNullType <BooleanType> >();
        }
예제 #9
0
        protected override void Configure(IInputObjectTypeDescriptor <ScopeInput> descriptor)
        {
            descriptor.Name(nameof(ScopeInput));

            descriptor.BindFieldsExplicitly();

            descriptor.Field(o => o.Id).Type <NonNullType <UuidType> >();
            descriptor.Field(o => o.Name).Type <NonNullType <StringType> >();
            descriptor.Field(o => o.DisplayName).Type <NonNullType <StringType> >();
            descriptor.Field(o => o.Description).Type <StringType>();
            descriptor.Field(o => o.Resources).Type <ListType <NonNullType <StringType> > >();
        }
예제 #10
0
        protected override void Configure(
            IInputObjectTypeDescriptor <TodoInput> descriptor)
        {
            descriptor
            .BindFieldsExplicitly();

            descriptor
            .Field(x => x.Title)
            .Type <NonNullType <StringType> >();

            descriptor
            .Field(x => x.Status)
            .Type <NonNullType <EnumType <TodoStatus> > >();
        }
예제 #11
0
        protected override void Configure(IInputObjectTypeDescriptor <AuthorizationInput> descriptor)
        {
            descriptor.Name(nameof(AuthorizationInput));

            descriptor.BindFieldsExplicitly();

            descriptor.Field(o => o.Id).Type <NonNullType <UuidType> >();
            descriptor.Field(o => o.Application).Type <ClientInputType>();
            descriptor.Field(o => o.Scopes).Type <NonNullType <ListType <StringType> > >();
            descriptor.Field(o => o.Status).Type <StringType>();
            descriptor.Field(o => o.Subject).Type <NonNullType <ListType <NonNullType <StringType> > > >();
            descriptor.Field(o => o.CreationDate).Type <NonNullType <ListType <NonNullType <StringType> > > >();
            descriptor.Field(o => o.Type).Type <NonNullType <StringType> >();
        }
예제 #12
0
        protected override void Configure(IInputObjectTypeDescriptor <PaginationQuery> descriptor)
        {
            descriptor.BindFieldsExplicitly();

            descriptor.Field(t => t.PageNumber)
            .Description("Current page")
            .Type <NonNullType <IntType> >();

            descriptor.Field(t => t.PageSize)
            .Description($"Size of the page, max size: {PaginationQuery.MaxPageSize}")
            .Type <NonNullType <IntType> >();

            descriptor.Field(t => t.IncludeCount)
            .Description("Return the total number of elements")
            .Type <NonNullType <BooleanType> >();
        }
예제 #13
0
        protected override void Configure(IInputObjectTypeDescriptor <ClientInput> descriptor)
        {
            descriptor.Name(nameof(ClientInput));

            descriptor.BindFieldsExplicitly();

            descriptor.Field(o => o.ClientId).Type <NonNullType <StringType> >().Description("");
            descriptor.Field(o => o.ClientSecret).Type <NonNullType <StringType> >().Description("");
            descriptor.Field(o => o.DisplayName).Type <NonNullType <StringType> >().Description("");
            descriptor.Field(o => o.Permissions).Type <ListType <NonNullType <StringType> > >().Description("");
            descriptor.Field(o => o.PostLogoutRedirectUris).Type <ListType <NonNullType <StringType> > >().Description("");
            descriptor.Field(o => o.RedirectUris).Type <ListType <NonNullType <StringType> > >().Description("");
            descriptor.Field(o => o.Type).Type <NonNullType <StringType> >().Description("");
            descriptor.Field(o => o.RequirePkce).Type <NonNullType <BooleanType> >().Description("");
            descriptor.Field(o => o.RequireConsent).Type <NonNullType <BooleanType> >().Description("");
        }
예제 #14
0
 protected override void Configure(IInputObjectTypeDescriptor <T> descriptor)
 {
     base.Configure(descriptor);
     descriptor.BindFieldsExplicitly();
 }