Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How should you design the Firestore schema for an application that stores and displays user-submitted comments on news articles, while supporting an unknown number of comments and articles?
A
Store each comment in a subcollection of the article.
B
Add each comment to an array property on the article.
C
Store each comment in a document, and add the comment's key to an array property on the article.
D
Store each comment in a document, and add the comment's key to an array property on the user profile.