mirror of
https://github.com/seigler/graphql-playground
synced 2025-07-27 09:36:09 +00:00
14 lines
284 B
JavaScript
14 lines
284 B
JavaScript
const express = require('express');
|
|
const graphqlHTTP = require('express-graphql');
|
|
|
|
const schema = require('./schema/schema');
|
|
|
|
const app = express();
|
|
|
|
app.use('/graphql', graphqlHTTP({
|
|
schema
|
|
}));
|
|
|
|
app.listen(4000, () => {
|
|
console.log('Listening on http://localhost:4000');
|
|
});
|