I'm relatively new to coding and am having trouble.  I have this code to send data to firebase  app.userid = app.user.uid  var userRef = app.dataInfo.child(app.users);  var useridRef = userRef.child(app.userid);  useridRef.set({   locations: &#...
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...
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 have a Firebase HTTPs function. The function needs to read a value from a Firebase database based on the query parameter, and return a result based on this data.  The Firebase JS SDK says to do this using:  return firebase.database().ref('/us...
As the title says, I can't get the differences between update and set. Also the docs can't help me, as the update example works exactly the same if I use set instead.  The update example from the docs:  function writeNewPost(uid, username, ti...
I have a list of known keys in my Firebase database  -Ke1uhoT3gpHR_VsehIv -Ke8qAECkZC9ygGW3dEJ -Ke8qMU7OEfUnuXSlhhl   Rather than looping through each of these keys to fetch a snapshot of their respective object, how can I query for each of these key...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.