Say I have this minimal database stored in Cloud Firestore. How could I retrieve the names of subCollection1 and subCollection2?  rootCollection {     aDocument: {         someField: { value: 1 },         anotherField: { value: 2 }         subColle...
This code is working fine.  The only improvement I want is - when I pass "Pi", it fetch all the items object that begin with the name "Pi", but when I enter "pi" it returns nothing!  This means I want this method startAt(ite...
I am pushing data in firebase, but i want to store unique id in my database also . can somebody tell me,how to push the data with unique id.  i am trying like this    writeUserData() {     var key= ref.push().key();     var newData={         id: ke...
I have the following structure on my Firebase database:   I would like to search for an user by name, last name or email but as I don't have the user key in the level above I don't know how I can achieve this. I'm doing and administrato...
I was wondering, is there a way to update the key value?  Let´s use the following data:    I am using set() to write the data.  Now, I want the user to edit their bookTitle and it needs to change on both places. I tried using update() but I can´t...
I'm trying out Firebase (since Google's new release).  In the original version of Firebase the parameter shallow=true would return an object with { key: true } for every key at the root of the tree/branch that was requested (and so, rather...
I have a node in Firebase getting continually updated with information from a logfile. The node is lines/ and each child of lines/ is from a post() so it has a unique ID.  When a client first loads, I want to be able to grab the last X number of en...
I want to add a new data to firebase authentication which has data like displayname, phone number, image. But i want to add more such gender, birthday and more. is it possible to add new?...
Is there a method in firebase, which can check if value exist in DB? Firebase has method .exists(), but according to docs it checks only the keys.  I have the following structure:  {   "users": {     "-KKUmYgLYREWCnWeHCvO": {...
I'm using the firebase node api in my javascript files for Google login.   firebase.initializeApp(config); let provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithPopup(provider);   This works fine and the user is able...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.