Answers for "realtime firebase database : How to check if document exists"

0

realtime firebase database : How to check if document exists

this.realtimedbService.getOneItem(key,  'colection').valueChanges()
              .subscribe(
                  result => {
                      if (result === null) {
                          console.log('NOT EXIST');
                                     }
                      if (result !== null) {
                        console.log('EXIST');

                      }
                  },
                  error => {
                      console.log(" EE : ");
                      console.log(error);
                  }
              );
Posted by: Guest on January-26-2021

Code answers related to "realtime firebase database : How to check if document exists"

Browse Popular Code Answers by Language