Unconventional store.find with not existing model


#1

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?