0

I am new to firebase and I am trying to get data from firebase. In MySQL, this is very easy but I don't know how can we join collections in firebase. Please guide me to solve this small issue.

Below is the data in my firebase.

enter image description here

I want to get match the team ID with the users' collection. Below is my code with where condition but it is not working.

 getProjects() {
    this.firestore.collection('projects').valueChanges().subscribe(projects => {
      // console.log(projects)
      // this.projects = projects;
      const teamRef = this.firestore.collection('users');
      projects.forEach(project => {
        teamRef.where('')
      })
      // console.log(this.projects)
    })
  }

Any solution Appreciated!

Dharmaraj
  • 47,845
  • 8
  • 52
  • 84
Robin Singh
  • 1,565
  • 1
  • 13
  • 38

0 Answers0