mirror of
https://github.com/seigler/graphql-playground
synced 2025-07-27 01:26:10 +00:00
Initial commit
This commit is contained in:
commit
0bd76ac5dc
8 changed files with 1386 additions and 0 deletions
14
server/app.js
Normal file
14
server/app.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
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');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue