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 2249678 commit e1bef4cCopy full SHA for e1bef4c
README.md
@@ -11,9 +11,13 @@ yarn add oc-registry-graphql-express-middleware
11
## How to use it w/in your Registry
12
13
```javascript
14
-const middleware = require('oc-registry-graphql-express-middleware');
+// todo: get rid of babel-*
15
+require('babel-core/register');
16
+require('babel-polyfill');
17
-registry.app.use('/graphql', middleware({ baseUrl: 'http://localhost:3000/', graphiql: true }));
18
+const graphql = require('oc-registry-graphql-express-middleware');
19
+
20
+registry.app.use('/graphql', graphql({ baseUrl: 'http://localhost:3000/', graphiql: true }));
21
```
22
23

0 commit comments