I’m trying to get the first record from a model with an offset… this is what I am doing in the route so far to grab this:
var nextContract = this.store.query('contract', {
limit: 1,
offset: 25
});
This seems to be returning all the records in the contract model though. Sometimes the offset will be 28, sometimes it will be 2… who knows. I’m trying to build a “Next” and “Previous” button to view all records in a model. This is the best thing I can think of… (I have an offset query parameter being passed through so for the previous contract, I’m doing offset - 1
and for the next, I’m doing offset + 1
.
Any help? Thank you!