小程序云开发lookup连表查询怎么加where?
const res = await db.collection( 'book_lend' ).where({ user: wxContext.OPENID }).aggregate() .lookup({ from: 'books' , localField: 'isbn' , foreignField: 'isbn' , as: 'bookDetail' , }) .end() |
以上代码会报错,‘collection().where().aggregate().lookup().end() is not a function ’,怎么写才对呢?