File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ It allows you to move your API to GraphQL with nearly zero afford and maintain b
12
12
``` js
13
13
const express = require (' express' );
14
14
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' );
18
18
19
19
graphQLSchema (' ./petstore.json' ).then (schema => {
20
20
app .use (' /graphql' , graphqlHTTP (() => {
@@ -52,4 +52,4 @@ swagger-to-graphql --swagger=/path/to/swagger_schema.json > ./types.graphql
52
52
...
53
53
```
54
54
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 >
You can’t perform that action at this time.
0 commit comments