We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f27da commit 46fa353Copy full SHA for 46fa353
README.md
@@ -5,14 +5,17 @@ It allows you to move your API to GraphQL with nearly zero afford and maintain b
5
6
[More about REST, GraphQL and this library](https://medium.com/@raxwunter/moving-existing-api-from-rest-to-graphql-205bab22c184)
7
8
+
9
+## Usage
10
11
```js
12
const express = require('express');
13
const app = express();
14
var graphqlHTTP = require('express-graphql');
15
var graphql = require('graphql');
-var graphQLSchema = require('./lib');
16
+var graphQLSchema = require('swagger-to-graphql');
17
-graphQLSchema('./test/fixtures/petstore.json').then(schema => {
18
+graphQLSchema('./petstore.json').then(schema => {
19
app.use('/graphql', graphqlHTTP(() => {
20
return {
21
schema,
0 commit comments