Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Unconventional store.find with not existing model

$
0
0

@szsoppa wrote:

I'm trying to fetch two model data from server: event and its participants. Endpoints look like this:

  • /events/:id for event
  • /events/:id/participants for event participants

Participants are described with user model and that's where my problem begins. By convention findAll method is trying to assign first argument - which is model name - to data returned from server. I don't need another model for that (which would be participant) because I already have User. Second of all I can't use AJAX to accomplish that because I need to paginate those participants and that's what ember-infinity component does for me. Do you know how to call such a query without declaring another model?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles