May 20, 2021 WeChat Mini Program Development Document
Gets a reference to the record
The method signature is as follows:
function doc(id: string | number): Document
The method accepts an id parameter that specifies the record ID to be referenced
The sample code
const myTodo = db.collection('todos').doc('my-todo-id')