diff --git a/docs/firestore/collections.md b/docs/firestore/collections.md index 9307f0229..7203d169d 100644 --- a/docs/firestore/collections.md +++ b/docs/firestore/collections.md @@ -116,7 +116,7 @@ export class AppComponent { addItem(name: string) { // Persist a document id const id = this.afs.createId(); - const item: Item = { id, item }; + const item: Item = { id, name }; this.itemsCollection.add(item); } }