请问这一步为啥要分 2 次写?
資深大佬 : lithium148 0
const countResult = await db.collection(‘todos’).count() const total = countResult.total console.log(total) //total 为 6
const total = await db.collection('todos').count().total console.log(total) //total 为 null
谢谢!
大佬有話說 (5)