diff --git a/README.md b/README.md index 8fce976e..a85838de 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,6 @@ struct MessageAPI : API { let resolver: Resolver let schema: Schema - // 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 @@ -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.