Skip to content

Commit 07f4044

Browse files
committed
Update README.md
1 parent e3b9cd6 commit 07f4044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ struct MessageAPI : API {
8787
let resolver: Resolver
8888
let schema: Schema<Resolver, Context>
8989

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

@@ -105,6 +103,8 @@ struct MessageAPI : API {
105103
}
106104
```
107105

106+
⭐️ Notice that `API` allows dependency injection. You could pass mocks of `resolver` and `context` when testing, for example.
107+
108108
#### Querying
109109

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

0 commit comments

Comments
 (0)