常用方法
常用方法
常用方法
常用方法
public AuthorType(AuthorRepository authorRepository) { Name = "Author"; Field(x => x.Id); Field(x => x.Name).Description("Name of the author"); Field <ListGraphType <BookType> >( "books", resolve: context => { return(authorRepository.BooksFromAuthor(context.Source.Id)); } ); }