public Task <Author> GetAuthor([DataLoader] AuthorDataLoader dataLoader, [Parent] Book book) { return(dataLoader.LoadAsync(book.AuthorId)); }
public Task <Author> GetAuthorByIdAsync( int id, AuthorDataLoader authorDataLoader, CancellationToken cancellationToken) => authorDataLoader.LoadAsync(id, cancellationToken);
public Task <Author> GetAuthorAsync( Book book, AuthorDataLoader authorById, CancellationToken cancellationToken) => authorById.LoadAsync(book.AuthorId, cancellationToken);