From 9a7b35f5a91311ee751a02bd78df6bd6090ff100 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Tue, 5 Feb 2019 13:06:07 +0300 Subject: [PATCH] Fix same typos --- manuscript/chapter-2.md | 2 +- manuscript/chapter-6.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manuscript/chapter-2.md b/manuscript/chapter-2.md index 42a5d53..b1b15a1 100644 --- a/manuscript/chapter-2.md +++ b/manuscript/chapter-2.md @@ -33,7 +33,7 @@ In the next section you will understand how to create schemas using a function c ## 2.2 Schemas -You create schemas by combining type definitions and resolvers. There is a handy package called [`graphql-tools`](https://github.com/apollographql/graphql-tools) that provides a function called `makeExecutableSchema`. The previous chapter contained a lot of `graphql(query, schema)` calls. All of those examples sent queries agains a schema generated with `makeExecutableSchema`. +You create schemas by combining type definitions and resolvers. There is a handy package called [`graphql-tools`](https://github.com/apollographql/graphql-tools) that provides a function called `makeExecutableSchema`. The previous chapter contained a lot of `graphql(query, schema)` calls. All of those examples sent queries against a schema generated with `makeExecutableSchema`. Open the file called `schema.js` in the example project you just remixed to see how you can create a schema. diff --git a/manuscript/chapter-6.md b/manuscript/chapter-6.md index 88c2b53..e886c1d 100644 --- a/manuscript/chapter-6.md +++ b/manuscript/chapter-6.md @@ -299,7 +299,7 @@ describe("HTTP layer", () => { }); ``` -Most of the time, the tests you can write against the HTTP layer are very similar to the tests you can write agains the GraphQL layer. For example, testing that unauthorized users cannot add pins consists of creating a query, and sending it either against an HTTP server or agains the schema directly. In this case, we are going to write it against the HTTP server, but it is a matter of choice. +Most of the time, the tests you can write against the HTTP layer are very similar to the tests you can write agains the GraphQL layer. For example, testing that unauthorized users cannot add pins consists of creating a query, and sending it either against an HTTP server or against the schema directly. In this case, we are going to write it against the HTTP server, but it is a matter of choice. ```js const { graphql } = require("graphql"); @@ -421,7 +421,7 @@ module.exports = { }; ``` -To test that users can create short lived tokens, you can send a `createShortLivedToken` query agains the server, and check that it sent an email containing the user's address. +To test that users can create short lived tokens, you can send a `createShortLivedToken` query against the server, and check that it sent an email containing the user's address. ```js const { graphql } = require("graphql");