MongoDB collection.findOne() returns undefined value

后端 未结 0 1114
暗喜
暗喜 2021-01-21 00:45
const Location = require("../models/locations");

getLocation = async(req, res) => {
   await Location.findOne(
    { name: req.query.locationName },
    {          


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