1. db.collection('todos').add({
    2. // data 字段表示需新增的 JSON 数据
    3. description: "learn cloud database",
    4. tags: [
    5. "cloud",
    6. "database"
    7. ],
    8. done: false
    9. }
    10. })
    11. .then(res => {
    12. })