Skip to content

Commit 6bfade4

Browse files
authored
Update README.md
1 parent 22b2ae0 commit 6bfade4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ It allows you to move your API to GraphQL with nearly zero afford and maintain b
1212
```js
1313
const express = require('express');
1414
const app = express();
15-
var graphqlHTTP = require('express-graphql');
16-
var graphql = require('graphql');
17-
var graphQLSchema = require('swagger-to-graphql');
15+
const graphqlHTTP = require('express-graphql');
16+
const graphql = require('graphql');
17+
const graphQLSchema = require('swagger-to-graphql');
1818

1919
graphQLSchema('./petstore.json').then(schema => {
2020
app.use('/graphql', graphqlHTTP(() => {
@@ -52,4 +52,4 @@ swagger-to-graphql --swagger=/path/to/swagger_schema.json > ./types.graphql
5252
...
5353
```
5454

55-
<a href="https://github.com/yarax/swagger-to-graphql/blob/master/src/types.js#L3"> All context options </a>
55+
<a href="https://github.com/yarax/swagger-to-graphql/blob/master/src/types.js#L3"> All context options </a>

0 commit comments

Comments
 (0)