用field为啥运行显示where?
发布于 6 年前 作者 xiulan11 9361 次浏览 来自 问答

db.collection('users').field({

          userPhoto:true,

         nickName:true,

         links:true

       })

      .get().then((res)=>{

         this.setData({

            listData : res.data

         });

       });

为什么运行的出来的跟写的代码不一样·呢

db.collection('users').where({})

.field({

  userPhoto: true,

  nickName: true,

  links: true

})

.get()

发起的如下数据库查询经自动检测发现以下问题


1 回复

跟field没关系,默认一个没条件的where

回到顶部