{"size": 351, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "farhan687/graphql-mongodb-sample", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "farhan687/graphql-mongodb-sample", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "farhan687/graphql-mongodb-sample", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.5, "max_line_length": 77, "alphanum_fraction": 0.6524216524}
import express from 'express';
import { graphqlHTTP } from 'express-graphql';

import schema from './data/schema';

const app = express();

app.get('/', (req, res) => {
  res.send('Graphql is cool');
});

app.use('/graphql', graphqlHTTP({
  schema,
  graphiql: true,
}));

app.listen(9999, () => console.log('Running on server port localhost:9999'));
