firebase-realtime-database

How to use multi-path update with the REST API in Firebase? Error 400

拟墨画扇 提交于 2020-01-09 08:11:28
问题 I would like to update multiple nodes in a single operation using the firebase REST API and Vapor framework. When I make .patch request to Firebase I get error from Vapor client: The operation couldn’t be completed. Error 400 Bad Request Could anyone tell me if finalDictionary is initialized correctly before being converted in JSON? Desired output for Users node: brv-61e24 Users usersUID customer bookingNumber timeStampBookingCancelled CleanersUID:"cleanersUID" TimeStampBookingClaimed:

Android firebase 9.0.0 setValue to serialize enums

与世无争的帅哥 提交于 2020-01-09 07:54:25
问题 I have this class making use of enums. Parsing to Firebase json used to work just fine - using Jackson. While migrating to firebase-database:9.0.0 I get the following: com.google.firebase.database.DatabaseException: No properties to serialize found on class .... MyClass$Kind where Kind is the enum declared type. The class: public class MyClass { public enum Kind {W,V,U}; private Double value; private Kind kind; /* Dummy Constructor */ public MyClass() {} public Double getValue() { return

Swift / How to use dispatch_group with multiple called web service?

心已入冬 提交于 2020-01-09 07:34:22
问题 I am using dispatch_group to call Firebase requesting functions and get notified once the request is complete to be able to work with the result then. In this scenario I've just put a print statement. func loadStuff() { dispatch_group_enter(group) myFirebaseFunction() { dispatch_group_leave(group) } dispatch_group_notify(group, dispatch_get_main_queue()) { print("done") } } func myFirebaseFunction(completionHandler: () -> ()) { let usersRef = firebase.child("likes") usersRef.observeEventType(

delete element in firebase with android [duplicate]

你。 提交于 2020-01-07 09:21:08
问题 This question already has answers here : How to delete from firebase realtime database? (5 answers) Closed 2 years ago . I have a firebase data structure which looks like this: |---employees |----KJSXd4ScEmJ6N4UFc5k |---employeeName:"semah" |---employeeAge:"24" |----KJW3HRh5kxm_FgU9nNV |---employeeName:"Alex" |---employeeAge:"35" Now I want to delete the node -KJSXd4ScEmJ6N4UFc5k. But I only know the "employeeName": semah. I tried to delete the node with: mFirebaseDatabaseReference .child(

Firebase database requests and queries like SQL WHERE IN [duplicate]

a 夏天 提交于 2020-01-07 08:35:47
问题 This question already has an answer here : Speed up fetching posts for my social network app by using query instead of observing a single event repeatedly (1 answer) Closed 3 years ago . I am new to firebase and I have a couple of questions.. I found some information in old posts but unfortunately are too old to consider them as valid (dated back to 2013). Number of requests per client: I am not even sure what I am asking.. I read somewhere that Firebase allows 10 requests per second per

How to get multiple id's from firebase?

拈花ヽ惹草 提交于 2020-01-07 08:32:09
问题 I have an admin area which collects all data from Firebase in an array. My task is to update data and send it to Firebase for specific users (I need to put some comment). Problem is that in .doc('id of document') , I don't know how to get the specific ID of document in Firebase. Function works fine if I put in an ID of a specific document (e.g. "2jzm4AcWTVNIlT9ESH7V" ). doc.data() returns all the data from Firebase and each ID is stored in the object together with the data. <script> import

How to pull out data from Firebase into HTML page?

强颜欢笑 提交于 2020-01-07 08:20:02
问题 I'm developing a simple User Registration web application which takes name and email as an input from the user. Used Firebase as an online data store. JavaScript file: ( Used JQuery) databaseRef.orderByKey() .once('child_added', function(snapshot) { snapshot.forEach(function(childSnapshot) { var childKey = childSnapshot.key; var childData = childSnapshot.val(); console.log("Key: " + childKey + "; Value: " + childData); $('#nameValue').text(childData); $('#emailValue').text(childData); }); });

How to pull out data from Firebase into HTML page?

三世轮回 提交于 2020-01-07 08:19:08
问题 I'm developing a simple User Registration web application which takes name and email as an input from the user. Used Firebase as an online data store. JavaScript file: ( Used JQuery) databaseRef.orderByKey() .once('child_added', function(snapshot) { snapshot.forEach(function(childSnapshot) { var childKey = childSnapshot.key; var childData = childSnapshot.val(); console.log("Key: " + childKey + "; Value: " + childData); $('#nameValue').text(childData); $('#emailValue').text(childData); }); });

How to get multiple id's from firebase?

℡╲_俬逩灬. 提交于 2020-01-07 08:07:19
问题 I have an admin area which collects all data from Firebase in an array. My task is to update data and send it to Firebase for specific users (I need to put some comment). Problem is that in .doc('id of document') , I don't know how to get the specific ID of document in Firebase. Function works fine if I put in an ID of a specific document (e.g. "2jzm4AcWTVNIlT9ESH7V" ). doc.data() returns all the data from Firebase and each ID is stored in the object together with the data. <script> import

How to get multiple id's from firebase?

跟風遠走 提交于 2020-01-07 08:07:11
问题 I have an admin area which collects all data from Firebase in an array. My task is to update data and send it to Firebase for specific users (I need to put some comment). Problem is that in .doc('id of document') , I don't know how to get the specific ID of document in Firebase. Function works fine if I put in an ID of a specific document (e.g. "2jzm4AcWTVNIlT9ESH7V" ). doc.data() returns all the data from Firebase and each ID is stored in the object together with the data. <script> import