Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paulofaria committed Aug 19, 2020
1 parent e3b9cd6 commit 07f4044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ struct MessageAPI : API {
let resolver: Resolver
let schema: Schema<Resolver, Context>

// Notice that `API` allows dependency injection.
// You could pass mocks of `resolver` and `context` when testing, for example.
init(resolver: Resolver) throws {
self.resolver = resolver

Expand All @@ -105,6 +103,8 @@ struct MessageAPI : API {
}
```

⭐️ Notice that `API` allows dependency injection. You could pass mocks of `resolver` and `context` when testing, for example.

#### Querying

To query the schema we need to instantiate the api and pass in an EventLoopGroup to feed the execute function alongside the query itself.
Expand Down

0 comments on commit 07f4044

Please sign in to comment.