Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix same typos #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manuscript/chapter-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions manuscript/chapter-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down