https://github.com/opencomponents/oc-registry-graphql-express-middleware
OpenComponents Registry GraphQL Express middleware.
https://github.com/opencomponents/oc-registry-graphql-express-middleware
express graphql middleware opencomponents registry
Last synced: about 1 month ago
JSON representation
OpenComponents Registry GraphQL Express middleware.
- Host: GitHub
- URL: https://github.com/opencomponents/oc-registry-graphql-express-middleware
- Owner: opencomponents
- License: mit
- Created: 2017-05-09T21:38:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T10:49:42.000Z (over 1 year ago)
- Last Synced: 2026-02-12T18:55:57.163Z (4 months ago)
- Topics: express, graphql, middleware, opencomponents, registry
- Language: JavaScript
- Homepage: https://pink-pineapple.herokuapp.com/graphql
- Size: 1.8 MB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oc-registry-graphql-express-middleware
[](https://greenkeeper.io/)
[](https://travis-ci.org/opencomponents/oc-registry-graphql-express-middleware)
OpenComponents Registry GraphQL Express middleware.
## How to install
```bash
npm add oc-registry-graphql-express-middleware
```
## How to use it w/in your Registry
```javascript
require('babel-core/register');
require('babel-polyfill');
const graphql = require('oc-registry-graphql-express-middleware');
const options = {
baseUrl: configuration.baseUrl,
graphiql: configuration.discovery,
dependencies: configuration.dependencies
};
registry.app.use('/graphql', graphql(options));
```
> N.B.: `configuration` in the example above is the object used to configure the OpenComponents Registry.
