@@ -13,7 +13,7 @@ Looking for help? Find resources [from the community](https://graphql.org/commun
13
13
14
14
## Getting Started
15
15
16
- An overview of GraphQL in general is available in the
16
+ A general overview of GraphQL is available in the
17
17
[ README] ( https://github.com/graphql/graphql-spec/blob/master/README.md ) for the
18
18
[ Specification for GraphQL] ( https://github.com/graphql/graphql-spec ) . That overview
19
19
describes a simple set of GraphQL examples that exist as [ tests] ( src/__tests__ )
@@ -30,16 +30,16 @@ With npm:
30
30
npm install --save graphql
31
31
```
32
32
33
- or alternatively using yarn:
33
+ or using yarn:
34
34
35
35
``` sh
36
36
yarn add graphql
37
37
```
38
38
39
- GraphQL.js provides two important capabilities: building a type schema, and
39
+ GraphQL.js provides two important capabilities: building a type schema and
40
40
serving queries against that type schema.
41
41
42
- First, build a GraphQL type schema which maps to your code base .
42
+ First, build a GraphQL type schema which maps to your codebase .
43
43
44
44
``` js
45
45
import {
@@ -64,10 +64,9 @@ var schema = new GraphQLSchema({
64
64
});
65
65
```
66
66
67
- This defines a simple schema with one type and one field, that resolves
67
+ This defines a simple schema, with one type and one field, that resolves
68
68
to a fixed value. The ` resolve ` function can return a value, a promise,
69
- or an array of promises. A more complex example is included in the top
70
- level [ tests] ( src/__tests__ ) directory.
69
+ or an array of promises. A more complex example is included in the top-level [ tests] ( src/__tests__ ) directory.
71
70
72
71
Then, serve the result of a query against that type schema.
73
72
@@ -102,7 +101,7 @@ graphql(schema, query).then((result) => {
102
101
});
103
102
```
104
103
105
- ** Note** : Please don't forget to set ` NODE_ENV=production ` if you are running a production server it will disable some checks that can be useful during development but will significantly improve performance.
104
+ ** Note** : Please don't forget to set ` NODE_ENV=production ` if you are running a production server. It will disable some checks that can be useful during development but will significantly improve performance.
106
105
107
106
### Want to ride the bleeding edge?
108
107
@@ -118,7 +117,7 @@ npm install graphql@git://github.com/graphql/graphql-js.git#npm
118
117
119
118
### Using in a Browser
120
119
121
- GraphQL.js is a general purpose library and can be used both in a Node server
120
+ GraphQL.js is a general- purpose library and can be used both in a Node server
122
121
and in the browser. As an example, the [ GraphiQL] ( https://github.com/graphql/graphiql/ )
123
122
tool is built with GraphQL.js!
124
123
@@ -130,7 +129,7 @@ custom build configurations look for `.mjs` files!
130
129
131
130
### Contributing
132
131
133
- We actively welcome pull requests, learn how to [ contribute] ( ./.github/CONTRIBUTING.md ) .
132
+ We actively welcome pull requests. Learn how to [ contribute] ( ./.github/CONTRIBUTING.md ) .
134
133
135
134
### Changelog
136
135
0 commit comments