The firebase Web-App guide states i should put the given apiKey in my Html to initialize firebase:  // TODO: Replace with your project's customized code snippet <script src="https://www.gstatic.com/firebasejs/3.0.2/firebase.js">&l...
In my main page I have a list of users and i'd like to choose and open a channel to chat with one of them.  I am thinking if use the id is the best way and control an access of a channel like USERID1-USERID2.  But of course, user 2 can open the...
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: &#...
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 tried to read sorted data from Cloud Firestore using OrderBy. And Firestore returned data as Following Order:  AAA BBB aaa bbb  Now, what I want is something like following:  AAA aaa BBB bbb  I want this result only using OrderBy not by manual So...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.