This question already has answers here:
How can i rename a branch/node in firebase
(3 answers)
How to update the node key in Firebase?
(1 answer)
How to copy a record from a location to another in Firebase realtime database?
(1 answer)
Closed 1 year ago.
I want to update root name of an item in firebase real time database.
How to do that?
reference.child(Name).setValue(updateItem);
This code create a new item with a new name.
Related
This question already has answers here:
How to sort Firebase records by two fields (Android) [duplicate]
(1 answer)
Query based on multiple where clauses in Firebase
(8 answers)
Closed 8 months ago.
I am trying to get data of "fromuser" equals to "moeez" and "status" equals to "pending" in firebase
using query
Query query1 = databaseReference.child("fromuser").equalTo(name).orderByChild("status").equalTo(status_value);
gives error java.lang.IllegalArgumentException: You can't combine multiple orderBy calls!
Now how can i retrieve both values at same time to display sorted data??
This question already has answers here:
How to move a firestore document from cloud functions?
(2 answers)
Closed 2 years ago.
i'm looking for a way to change the document Id of a existing document. Is there a solution or do I need do copy all data and create a new document with the new document id?
Thanks a lot!
There isn't any way to change the id of an existing Firestore document.
You will therefore need to "copy all data and create a new document with the new document id".
This question already has answers here:
Query Firebase Database with two between conditions
(1 answer)
How to query Firebase for value between two keys
(2 answers)
Closed 3 years ago.
I'm trying to get all "par***" data sets where two dates are between "from" and "to" (x is greater than "from" and y is less than "to").
My Firebase structure is:
I'm using android with java and firebase realtime database.
This question already has answers here:
Assigning roles to members in Firebase project
(2 answers)
Closed 4 years ago.
How to give roles to user in firebase for my android app??
I want to differentiate employee and manager login.
Thanks in advance.
Just you have to add a role node in the firebase database saving the user's unique id like uid seprated by it their role.
"role" : {
"uid_1" : "emp",
"uid_2" : "manger" }
This question already has answers here:
How to avoid overwriting of data in firebase
(4 answers)
Firebase kicks out current user
(19 answers)
Closed 5 years ago.
I have this issue where every time when create a new user account, it replace the current user that is already signed in.
you should use push() method. Push is creating new id for every entry so data cannot be overwritten.