builder
builder copied to clipboard
`builder.getAll` doesn't respect `offset` option
Describe the bug
builder.getAll
doesn't seem to respect the offset
option. Regardless of the value passed, it returns the same results.
To Reproduce
- Call
builder.getAll
withoffset
set to0
- Observe results returned
- Call
builder.getAll
withoffset
set to25
- Compare results
Expected behavior
builder.getAll('page', { offset: 0 })
should return different results than builder.getAll('page', { offset: 25 })
offset
should be set inside of the options
key
e.g. builder.getAll('page', { options: { offset: 25 }})
Damn, wasted so much time on this. There should be more examples in the documentation on how to query data from API
2 years later, still not standardized or mentioned in the documentation.