Skip to content

Commit 46fa353

Browse files
authored
Update README.md
1 parent c5f27da commit 46fa353

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ It allows you to move your API to GraphQL with nearly zero afford and maintain b
55

66
[More about REST, GraphQL and this library](https://medium.com/@raxwunter/moving-existing-api-from-rest-to-graphql-205bab22c184)
77

8+
9+
## Usage
10+
811
```js
912
const express = require('express');
1013
const app = express();
1114
var graphqlHTTP = require('express-graphql');
1215
var graphql = require('graphql');
13-
var graphQLSchema = require('./lib');
16+
var graphQLSchema = require('swagger-to-graphql');
1417

15-
graphQLSchema('./test/fixtures/petstore.json').then(schema => {
18+
graphQLSchema('./petstore.json').then(schema => {
1619
app.use('/graphql', graphqlHTTP(() => {
1720
return {
1821
schema,

0 commit comments

Comments
 (0)