Ask Your Question
0

What is the method for storing metadata concerning a collection in Firestore?

asked 2023-07-03 00:15:49 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-03 00:38:02 +0000

ladyg gravatar image

The recommended method for storing metadata concerning a collection in Firestore is to create a separate document for the metadata and store it in a subcollection with a specific name like __metadata__. This way, the metadata document and the subcollection can be easily identified and managed separately from the other documents in the collection. Additionally, this approach allows for easy querying and indexing of the metadata document, as well as the ability to add and remove metadata fields without affecting the data in the main collection.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-03 00:15:49 +0000

Seen: 7 times

Last updated: Jul 03 '23