routers/goods.js

router.post('/goods', async (req, res) => {
    const {goodsId, name, thumbnailUrl, category, price} = req.body;  // assign seperately

    const isExist = await Goods.find({ goodsId });

    if (isExist.length == 0) {  // no duplicated
        await Goods.create({ goodsId, name, thumbnailUrl, category, price });
    }

    res.send({result: "success"});
});

→ to get POST method's return value, we need "insomnia"

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ce2b0e50-dc9f-4909-821a-9cea2c5cc98c/Screen_Shot_2021-06-25_at_10.16.27_PM.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e5e8ffdc-fa0a-4d54-a2d2-4c953a068cf4/Screen_Shot_2021-06-25_at_10.16.34_PM.png