Skip to content

Commit 3a19463

Browse files
yasinusluapottere
authored andcommitted
Fix typo in resolver example (#74)
1 parent 08273d1 commit 3a19463

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ The BookResolver might look something like this:
150150
```java
151151
class BookResolver implements GraphQLResolver<Book> /* This class is a resolver for the Book "Data Class" */ {
152152

153-
private AuthorRepostory authorRepostory;
153+
private AuthorRepository authorRepository;
154154

155155
public BookResolver(AuthorRepository authorRepository) {
156-
this.authorRepostory = authorRepository;
156+
this.authorRepository = authorRepository;
157157
}
158158

159159
public Author author(Book book) {
160-
return authorRepostory.findById(book.getAuthorId());
160+
return authorRepository.findById(book.getAuthorId());
161161
}
162162
}
163163
```

0 commit comments

Comments
 (0)