NodeJS: CastError: Cast to ObjectId failed for value “new” at path “_id” for model “Client”

后端 未结 0 1520
孤城傲影
孤城傲影 2020-11-21 05:44

I am working on a node app. All the routes seem to work up until I add

app.get(\'/clients/:id\',async (req, res) => {
const client = await Client.findById(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题