Graphql with Express js
- Express js - Express js
- Express Graphql - Express-Graphql
- Graphql - Graphql
- Nodemon - Nodemon เอาไว้ auto run เวลา save ทุกครั้ง
const express = require('express')
const app = express()
const port = 3000
app.get('/hello', (req, res) => {
res.json({ data: 'Hello' })
})
app.get('/world', (req, res) => {
res.json({ data: 'world!!!' })
})
app.listen(port, () => console.log(`Example app listening on port ${port}!`))