//express doesn't by default support json data input so use express.json() middleware const app= express(); app.use(express.json());