Questions tagged [emberfire]

EmberFire is the officially supported Ember JS adapter for Firebase with Ember-Data.

EmberFire is intended to make it easy to build Firebase-powered Ember applications.

152 questions
0
votes
1 answer

Firebase ember fire adapter fails in validation rules for parent child relationships

Firebase allows you to have validation rules ensuring that particular children exist for any given node. For example: { "rules" : { "posts" : { "$postsID" : { ".validate" : "newData.hasChildren(['title','body','authors'])", …
vjy
  • 183
  • 2
  • 7
0
votes
1 answer

Calculate total number of records dynamically on Firebase server side instead downloading the whole database

I found solutions for this problem only with snapshot, which downloads the whole database. It would be great to send a request to Firebase server which would respond the total number of records. Downloading the whole database is not really…
Zoltan
  • 4,936
  • 1
  • 35
  • 40
0
votes
1 answer

How do you save a many-to-many relationship in Ember and Firebase

Let's say we have many medicines that can be prescribed to many patients. Our model would look like this: App.Medicine = DS.Model.extend({ name: DS.attr(), patients: DS.hasMany('user', { async: true }), }); App.User = DS.Model.extend({ name:…
vikram-s-narayan
  • 538
  • 4
  • 12
0
votes
0 answers

Emberfire throwing permission denied error when api does not have authentication

I'm trying to use the hacker news firebase api in an ember app. I've wired up the EmberFire adapter like so import config from '../config/environment'; import Firebase from 'firebase'; import FirebaseAdapter from…
Wilfred
  • 799
  • 2
  • 16
  • 26
0
votes
1 answer

Set multiple data with Ember and make it persist on Firebase

I am trying to set data from two models (that has hasMany & belongsTo relationship) and save them to firebase. 'list' data ends up being saved to firebase but not user data. I think I'm doing something wrong at step 3. I'd appreciate your…
sunoceansand
  • 237
  • 3
  • 13
0
votes
1 answer

FirebaseSerializer for authentication messing with my models

I'm in the process of implementing Facebook Authentication via Ember CLI + Emberfire + Firebase. My FirebaseSerializer is messing up the entire app right now. Here's the error I got: Error while processing route: lists.index Assertion Failed: A…
sunoceansand
  • 237
  • 3
  • 13
0
votes
1 answer

Namespace "Firebase" already declared

I cannot find for my life why it's saying that I've declared the namespace twice. The error message is: Uncaught Error: Namespace "Firebase" already declared. I saw that people having this error named their app 'emberfire' or 'firebase'. I named…
sunoceansand
  • 237
  • 3
  • 13
0
votes
1 answer

Unable to host Ember CLI on Firebase

I'm unable to host my app on Firebase, and I'm not sure how I could fix it. I'm using Ember Cli with Ember Data. Uncaught Error: Could not find module emberfire/initializers/emberfire imported from…
sunoceansand
  • 237
  • 3
  • 13
0
votes
1 answer

Locking down read/write access for a specific node based on user

I know there have been similar issues to mine, but I'm still a bit stumped on how to secure my Firebase properly. First, I'm using EmberFire. Second, I'm using Firebase Email/Password authentication for account management. Each of my accounts…
jdixon04
  • 1,435
  • 16
  • 28
0
votes
1 answer

How to specify async belongsTo/hasMany relationships in emberfire/emder-data?

I am very new at Ember/ED/EmberFire so apologies if this is a trivial question. I am able to save records to Firebase but I am unable to specify relationships to those records in my controller. I am using DEBUG: Ember : 1.10.0 DEBUG: Ember Data…
molligan
  • 35
  • 3
0
votes
1 answer

Firebase tutorial producing undefined data elements

Title and Body attributes are undefined After walking through the tutorial: https://www.firebase.com/docs/web/libraries/ember/guide.html I get to here: ember generate controller posts the tutorial doesn't include adding the route so I've included a…
rad79
  • 175
  • 1
  • 1
  • 8
0
votes
1 answer

FirebaseAdapter not recognized on my Ember app

I'm trying to use Firebase with my Ember app. I installed Emberfire but my app returns Uncaught TypeError: Cannot read property 'extend' of undefined Because it doesn't read 'FirebaseAdapter' App.ApplicationAdapter = DS.FirebaseAdapter.extend({ …
sunoceansand
  • 237
  • 3
  • 13
0
votes
1 answer

findQuery - Emberfire error

I am getting this errror: This is the line I am using to get data --> return this.store.find('food', {feel: 2}); I am using, Ember : 1.10.0 Ember Data : 1.0.0-beta.12 EmberFire : 1.3.3 jQuery : 1.11.2 Error while processing route: index…
xxyyzz
  • 127
  • 9
0
votes
1 answer

EmberJS: Saving related hasMany relationship on ember-data model creates duplicate ONLY on additional displays

Having strange issue with saving hasMany relationships from a primary model, looking for advice: My setup: Ember : 1.11.0-beta.1+canary.48e11592 Ember Data : 1.0.0-beta.14.1 EmberFire : 1.3.2 jQuery : 1.11.2 Relationship (pseudo):…
Tremendus Apps
  • 1,497
  • 12
  • 20
0
votes
0 answers

Cascade delete model and its belongsTo relationships with emberjs

I have an emberjs/ember-data/firebase/emberfire client-side app that Im building. Ember : 1.11.0-beta.1+canary.d2d1490d Ember Data : 1.0.0-beta.14.1 EmberFire : 1.3.2 jQuery : 1.11.2 I have a bidirectional relationship declared in…
Tremendus Apps
  • 1,497
  • 12
  • 20