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.

151 questions
1
vote
0 answers

Is it possible to configure database or model root paths?

TL;DR: When using Firebase with Ember through EmberFire, Is there a way to define the root location where changes should be saved in the firebase database, either for the entire ember instance, or on a per-model basis? Example: given a secret model,…
Johannes
  • 5,628
  • 8
  • 30
  • 51
1
vote
1 answer

How to query a relationship object using Emberfire?

I am creating a simple flash card app. The model is simple each user has many cars. The problem is I would like to get cards which are created before a certain date (JS milliseconds). model() { const session = this.get('session').content; …
X.Creates
  • 11,800
  • 7
  • 58
  • 98
1
vote
2 answers

Ember Emberfire Query

I'm new to Ember, and have been impressed so far by how succinct everything is. Though querying data with EmberFire seems a little odd. For instance, in a component's js I can find a record with : store.query('user', { orderBy: 'email', equalTo:…
Sj.
  • 1,272
  • 1
  • 10
  • 9
1
vote
1 answer

Ember-Data Unit Testing Store

What is the best way to test a model's store? I am using ember-data 2.7.0 and would like to test that I can create a model instance and save it to the backend (firebase) successfully. I have wrapped the var record = store.create and record.save…
1
vote
0 answers

How to do a many-to-many relationship with an intermediate join model with Ember and Firebase

I'm having some trouble modeling these relationships and getting the correct data in my app. I have users, links, and bookmarks. Where bookmarks is a join table so users can have many bookmarks, and links can have many bookmarks export…
kaustubhb
  • 329
  • 4
  • 18
1
vote
0 answers

have only one datasource at firebase

I have a chat app, where I'm saving the groups and rooms in a Postgres database, and the messages are in Firebase. I tried use emberfire, but once you add it, all the this.store.find are routed to Firebase database, and I can't do that. I also tried…
Luiz E.
  • 5,739
  • 7
  • 47
  • 87
1
vote
1 answer

Authentication through google in ember

I am trying to get Authentication with Google and Facebook in my Ember app, but I cannot properly configure it. I created the project on the google developer website, added oAuth, and enabled Google on Firebase. I followed these steps on…
1
vote
1 answer

EmberFire & Firebase Storage Reference

I'm relatively new to Ember and EmberFire. I'm working on a Client/Logo management application. I've currently got Firebase Authentication and Firebase data working as expected. When I go to upload the logo to Firebase storage, I am presented with…
Matt Wagner
  • 780
  • 6
  • 13
1
vote
0 answers

Emberfire belongsTo and findAll

I have two models: models/cake.js export default Model.extend({ name: attr('string'), factory: belongsTo('factory', { inverse: 'cake', async: true }), }); models/factory.js export default Model.extend({ name: attr('string'), cake:…
Ámon Tamás
  • 121
  • 1
  • 8
1
vote
1 answer

Calling a relationship in template returns a DS.PromiseObject

I'm using firebase in combination with Ember CLI. I have the following setup: ember.debug.js:6401 DEBUG: Ember : 2.4.5 ember.debug.js:6401 DEBUG: Ember Data : 2.5.1 ember.debug.js:6401 DEBUG: Firebase : 2.4.2 ember.debug.js:6401 DEBUG:…
Frank Spin
  • 1,403
  • 12
  • 22
1
vote
0 answers

Duplicate records showing up in template

I have a survey app built with Ember JS and a Firebase backend with Emberfire adapter. Here are the relevant portions of my user model: //app/models/user.js export default DS.Model.extend({ name: DS.attr(), sessionuid: DS.attr(), …
learningMachine
  • 362
  • 3
  • 11
1
vote
1 answer

Emberfire saving record under custom key

Is it possible to save a new record using createRecord() and specify a custom key to save that new record under? At the moment when using createRecord() it's the same as using push() in the javascript framework. Obviously the following: var myObj =…
Chris
  • 6,719
  • 5
  • 35
  • 63
1
vote
0 answers

Emberfire set priority of record

Is there a way of setting the priority of a Firebase record in emberfire / EmberJS? So far googling around has only returned me answers as to how to query for prioritised records.
Chris
  • 6,719
  • 5
  • 35
  • 63
1
vote
0 answers

How to use auth in emberfire with torii intergrated

As per this merge torii has been merged into emberfire. There isn't much on the google about how to use it though. I've tried to look at some of the integration tests in emberfire to figure it out, but to no avail. I'm looking for an implementation…
Chris
  • 6,719
  • 5
  • 35
  • 63
1
vote
0 answers

EmberFire Query equalTo 'false'

I'm using Ember 2.3, EmberData 2.3.2, and EmberFire 1.6.3 In my Ember route I'm returning a firebase query that looks like this: model() { return this.store.query('todo', { orderBy: 'complete', equalTo: false }); }, my model…
Aaron
  • 3,946
  • 3
  • 21
  • 28
1 2
3
10 11