Questions tagged [firebase-util]

This is a collection of power toys (mostly experimental) and utilities for use in Firebase.

Firebase has set up a utility helper file that they recommend using. You can get it from github here: https://github.com/firebase/firebase-util

20 questions
12
votes
3 answers

Retrieve a related item list of an item list in a firebase array

I want to get a list of items in firebase, but each element of the item has a list of related items. I haven't been able to get the list, neither using firebase-util nor firebase array $extend functionality. My firebase data looks something like…
cor
  • 3,323
  • 25
  • 46
2
votes
0 answers

How to merge 2 objects from the same path?

I have the following structure: billing: { bill1: { creationDate: '2016-01-01', buyer: "person1", seller:"person2" } } people : { person1 : { name : "Jane" }, person2 : { name: "John" } } And…
user1336321
  • 144
  • 1
  • 1
  • 10
2
votes
1 answer

FIREBASE WARNING: Exception was thrown by user callback. Error: [$rootScope:inprog] http://errors.angularjs.org/1.4.7/$rootScope/inprog?p0=%24digest

I'm getting an error, random, sometimes occurs and sometimes not. I cannot identify the problem to fix. Does anyone know the error cause or how to prevent? My code: angular.module('VigiApp').controller('FeedsController', ['$scope', 'gettextCatalog',…
calraiden
  • 1,686
  • 1
  • 27
  • 37
1
vote
1 answer

Warning:com.firebase.ui.auth.util.ui.FlowUtils

When in try to run in release mode it is showing below error's and warning. How to solve this problem? Warning:com.firebase.ui.auth.ui.email.RegisterEmailFragment: can't find referenced method 'android.content.Context requireContext()' in program…
Midhilaj
  • 4,905
  • 9
  • 45
  • 88
1
vote
1 answer

Firebase, join paths

I have the following data structure: /users/$userId/profile/... /users/$userId/job/... /users/$userId/personal/... Suppose that I want to read some data about users' job and profile and show it as a list. There are 2 (related) problems here: 1.…
1
vote
0 answers

Firebase.util.NormalizedCollection merge multiple paths

I would like to know if it is possible with Firebase.util.NormalizedCollection to merge 3 paths or more who depends on each other. On firebase doc it said that the best practice with our datas is to have flattened data as possible, so I have that :…
1
vote
0 answers

Normalized Collection not working with reference of child of child

Angular NormalizedCollection is now working when reference of 'bookings.reservationFor.apartmentId' is passed. It was working perfect when I created a sample firebase entry and defined apartmentId as a value of 'reservationFor' directly and passed…
1
vote
0 answers

Display data from a different node in ng-repeat with Firebase-utils infiniti scroll

I'm using Firebase utils infinite scroll to be able to load "x" number of items instead of all of them to avoid performance issues in ng-repeat later. I am displaying the first 20 users and so far everything works well but now I am facing the next…
Daniel Soublett
  • 849
  • 2
  • 8
  • 23
1
vote
2 answers

How to check if all documents are loaded with Firebase.util pagination

How can I check if I have to stop calling the loadMore() function, because all the documents have already been loaded from the database? In the example below I'm using Ionic, but it's the same also with ng-infinite-scroll in AngularJS apps. This is…
fbid
  • 1,570
  • 2
  • 18
  • 29
1
vote
0 answers

Firebase Normalized Collection and Scroll not working

first the code var baseRef = new $databaseFactory(); var childRegistration = baseRef.child("registrations/"); var childStudents = baseRef.child("students/"); $scope.scrollRef = new Firebase.util.Scroll(childRegistration,'registerDate'); var…
andrescabana86
  • 1,778
  • 8
  • 30
  • 56
1
vote
0 answers

Pagination not working with Firebase scroll reference

This is probably a noob question but I am following this firebase util scroll ref pagination to retrieve my data from firebase database. I want to receive only those objects that meet the criteria of user city but its not working as I am not…
1
vote
1 answer

firebase how to query on firebase-util

I want to filter data from firebase, Im using firebase-util scroll for scrolling, I have the following code var baseRef = new Firebase(urlToFirebaseData).orderByChild("name").equalTo("john_doe"); var scrollRef = new Firebase.util.Scroll(baseRef,…
David
  • 1,139
  • 3
  • 10
  • 16
1
vote
1 answer

How to send email with all information associated with user id in Firebase

When a new user is added to Firebase, I would like to send myself an email with all of the data associated with that user. So if I have a /contacts path and a /projects path, I'd like to include the data from both paths when a child is added to the…
Ken
  • 3,091
  • 12
  • 42
  • 69
1
vote
1 answer

Firebase: Paginate Infinite Scroll

I'm following the Firebase-util Paginate Infinite Scroll demo, and was wondering if there is a way to load an initial number of items, instead of loading 0 items to begin with. When I click on my button, I'm loading in the next 16 items. Is there a…
realph
  • 4,481
  • 13
  • 49
  • 104
0
votes
1 answer

AngularJs error in return value from filter function

I would like to filter a Firebase path and see if a child exist in my path. I just want to return the values wich have a path call "reponses". It works but when the path doesn't have this Child, it throw me this error : firebase.js:283 Uncaught…
1
2