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 ’,怎么写才对呢?
where换成match