[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Structure data\n==============\n\nRemember, when you structure your data in Firestore, you\nhave a few different options:\n\n- Documents\n- Multiple collections\n- Subcollections within documents\n\nConsider the advantages of each option as they\nrelate to your use case. A few example structures for hierarchical data\nare outlined in this guide.\n\n\u003cbr /\u003e\n\n### Nested data in documents\n\nYou can nest complex objects like arrays or maps within documents.\n\n### Subcollections\n\nYou can create collections within documents when you have data that might expand\nover time.\n\n### Root-level collections\n\nCreate collections at the root level of your database to organize disparate data\nsets.\n\nVideos\n------\n\nTo learn more, see the following videos:"]]