14 lines
281 B
JavaScript
14 lines
281 B
JavaScript
var graphqlExpress = require('graphql-server-express').graphqlExpress;
|
|
var schema = require('../api/schema');
|
|
|
|
module.exports = function (store) {
|
|
return graphqlExpress(function() {
|
|
return {
|
|
schema: schema,
|
|
context: {
|
|
store: store
|
|
}
|
|
};
|
|
});
|
|
};
|