In the documentation for Firebase, it mentions updating nested objects. You can find out more about this here: https://firebase.google.com/docs/firestore/manage-data/add-data#update_fields_in_nested_objects
Here is my data structure:
let ref = db.collections('projects').doc('blabla')
ref.set({
objOfObjects: {}
})
I am looking to add an object (value) with a randomly generated key to the objOfObjects field, similar to how the regular add function works. The key cannot be tied to any of the values in the object. Is there a way to achieve this within objOfObjects or should I consider restructuring my data?