Console not displaying newly inserted documents array, but inserted in collection correctly. ERROR: await is only valid in async function

前端 未结 0 1536
小蘑菇
小蘑菇 2020-12-18 06:15

I\'m trying to insert a few documents to a mongoose collection called Slots with a post method (testing via Postman). In my code, after insertion, I want to print in the con

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