From 07f40448d6d22045a897ccd36f2293bece2d731f Mon Sep 17 00:00:00 2001 From: Paulo Faria Date: Wed, 19 Aug 2020 17:04:26 -0300 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.