skip to Main Content

Firebase – Is there any way to avoid nested subscribe?

(https://i.stack.imgur.com/2zm2w.png) collectionData(queryRef).subscribe((data) => { for (const each of data) { this.getCourse(each.courseId) .pipe(take(1)) .subscribe((courseData) => { const course = courseData[0]; console.log(course); this.getLecturer(course.lecturerId).pipe(take(1)).subscribe((res: any)=>{ const lecturer = res[0]; course.lecturerName = lecturer.lecturerName; course.lecturerImageUrl = lecturer.lecturerImageUrl; }); recentVisit.push(course); }); } }); Hi I am…

VIEW QUESTION

swift firebase queryStartingAtValue

I'm new to firebase and am trying to search the title of the product using queryStartingAtValue. in my firebase JSON and code below, I have a few levels to travel. it look like -> /item/(section name: clothing,games etc)/autoID/(product name, price)…

VIEW QUESTION
Back To Top
Search