示例#1
0
        public PersonType(ITitleService titleService)
        {
            Field(x => x.Id);
            Field(x => x.Name);
            Field(x => x.BirthDate);

            Field <ListGraphType <TitleType> >("movies",
                                               resolve: context => titleService.ListFromPersonId(context.Source.Id));
        }