Reputation: 17
Like a note app, you can set tags to a note. Also, you can search notes with tag. Here is the firestore structure:
notes(collection)
note_1(doc)
content: 'some words...'
tags: ['apple', 'banana']
tags(collection)
tag_1(doc)
name: 'apple'
tag_2(doc)
name: 'banana'
If I change tag_1.name to 'new_apple', how shold I update note_1.tags?
Upvotes: 0
Views: 159
Reputation: 317497
You're going to have to:
Upvotes: 1