so I'm looking to create the following structure in firestore
code_table: [
"GIM": [
{
"label":"assement",
"codes": ["A001A","A002A",...]
},
{
"label":"consults",
"codes": ["A001A","A002A",...]
}
....
]
Between the documents and the collections I can't seem to be able to get this into the firebase firestore using the web ui (Just creating the test data) in such a way that I can actually query it using the flutter sdk
Any suggestions?
Step by step, here's how I create a top-level collection, a code_table
document, a GIM
subcollection under that document, and then a document in there.
Create a top-level collection with a code_table
document in there.
Select the code_table
document, and click Add collection
This creates a subcollection under the code_table
document in the top-level collection.
Click the Auto-ID link to generate a document ID, and enter the fields for your first document in the nested collection.
Click Save
Now you have a top-level collection, a code_table
document in there, a GIM
subcollection under that document, and a first document in there.