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 trying to build a message system. I am planning on having a collections of messages and then querying messages based on sender and receivers. In order to do so I need to query for example: all messages that are sent by Bob and received by Tony...
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...
I'd like to perform a query on my database once a cloud function on my Firebase app is called.  Let's say I have a certain trigger on the database, consider the example provided in the get started guide on Firebase.  // Listens for new messag...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.