-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with cursor based pagination #140
Comments
It would be nice (ideal, even) if this addon supported JSONAPI links-based pagination such as you have here. In fact you don't really need ember-infinity to build your request at all, and since you're hitting the FB Graph API I'm guessing you're not using Ember Data either? It seems the difficulty here lies in getting Ember Data to use those links for pagination instead of building it via The docs refer to |
@davidgoli I'm using Ember Data (for the first time..). So you say I don't need this mixin at all but then how do I make a request for next link? |
@sylwiaeb well, Ember Data is... opinionated about how requests are built. Before diving in with Ember Infinity I'd suggest building a couple routes that don't use Ember Infinity just to get a feel for how Ember Data works with your backend. In brief, Ember Data builds your urls for you, using an adapter. Take a look at these guides for more info: http://emberjs.com/api/data/classes/DS.Store.html#method_query |
Thanks for tips and pointing me into right direction. Closing now, will update if this work. |
Hi all,
I'm using ember 2.3.0 with ember-data and JSONApi and trying to get this working with Facebook Graph api cursor pagination. My response looks like this:
And I stuck at this point:
this.set('_minId', posts.get('lastObject.id'));
is undefined butthis.set('_minId', posts.get('lastObject').get('id');
seems to be working not sure whythis.set('_minUpdatedAt', posts.get('lastObject.updated_at').toISOString());
also is undefined but that's because my model doesn't haveupdated_at
? so my question is should I set this prop when loading model or something?The text was updated successfully, but these errors were encountered: