I am trying to establish a relation between in my data structure between two different trees. One is the "Spaces" tree, the other is the "Depts". Logically the departments (depts) are inside the space (spaces).
This question comes from this one: How can I get to the references inside dynamically generated references in firebase?
Here is an image of my database structure:
相关问题
- Axios OPTIONS instead of POST Request. Express Res
- adding sha1 in firebase app fails with error
- firebase storage cors strange Behaviour
- Firebase security rules difference between get() a
- LoginActivty with Firebase & Facebook authenticati
相关文章
- How can make folder with Firebase Cloud Functions
- Best way to dynamically change theme of my Vue.js
- Firestore Update a document field Using Rest API
- vue-router how to persist navbar?
- How to convert a FCM token to APNS token?
- How to Properly Use Vue Router beforeRouteEnter or
- Difference between nameFunction() {} and nameFunct
- Vue - best way to reuse methods
this seem to be the most practical method:
Tying the users node to the buildings:
Template:
Data:
Methods:
I hope this does it for you.
Follow more questions on this topic here:
What is the best practice to write the rules of Firebase in a situation like this?
Is it possible to define a variable on the firebase database references path?