数据库聚合match._gt指令比较时间时出错,有人遇到吗?
发布于 4 年前 作者 ping16 9121 次浏览 来自 官方Issues

 代码:

  const _ = db.command

  const $ = _.aggregate

var time=new Date()

  db.collection('chatroom')

      .aggregate()

      .match({

      sendTime: _.gt(time)

      })

错误信息:

Error: errCode: -501007 invalid parameters | errMsg: [InvalidParameter] Check request parameter fail. Please check your request, but if the problem cannot be solved, contact us.

1 回复
回到顶部