May 20, 2021 WeChat Mini Program Development Document
Support: small programs, cloud functions, web
Gets a reference to the specified record in the collection. The method accepts an id parameter that specifies the value of the record to _id.
Record _id
const myTodo = db.collection('todos').doc('my-todo-id')