We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b9cd6 commit 07f4044Copy full SHA for 07f4044
README.md
@@ -87,8 +87,6 @@ struct MessageAPI : API {
87
let resolver: Resolver
88
let schema: Schema<Resolver, Context>
89
90
- // Notice that `API` allows dependency injection.
91
- // You could pass mocks of `resolver` and `context` when testing, for example.
92
init(resolver: Resolver) throws {
93
self.resolver = resolver
94
@@ -105,6 +103,8 @@ struct MessageAPI : API {
105
103
}
106
104
```
107
+⭐️ Notice that `API` allows dependency injection. You could pass mocks of `resolver` and `context` when testing, for example.
+
108
#### Querying
109
110
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