Slide 10
Slide 10 text
ී௨ͷObjectΛฦ͢
• ϑΣονͷ݁Ռී௨ͷObjectΛฦ͢
• idͱͦΕҎ֎Ͱݺͼग़͠ํ͕ಉ͡
• αϯϓϧίʔυͰdoc.id, doc.name
• addsetͰObjectΛฦ͢
const doc = await dao.fetchDocument(id)
// { id: 'XoZBjNpnj6QKCXSW4bu7', name: 'alice', age: 20 }
const addedDoc = await dao.add({ name: ‘alice', age: 20})
// { id: 'XoZBjNpnj6QKCXSW4bu7', name: 'alice', age: 20 }
firestore-simple