builder icon indicating copy to clipboard operation
builder copied to clipboard

`builder.getAll` doesn't respect `offset` option

Open lukecjohnson opened this issue 2 years ago • 1 comments

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

  1. Call builder.getAll with offset set to 0
  2. Observe results returned
  3. Call builder.getAll with offset set to 25
  4. Compare results

Expected behavior builder.getAll('page', { offset: 0 }) should return different results than builder.getAll('page', { offset: 25 })

lukecjohnson avatar Mar 02 '22 15:03 lukecjohnson

offset should be set inside of the options key

e.g. builder.getAll('page', { options: { offset: 25 }})

ancheetah avatar Sep 14 '22 15:09 ancheetah

Damn, wasted so much time on this. There should be more examples in the documentation on how to query data from API

mimoid-prog avatar Jul 19 '23 11:07 mimoid-prog

2 years later, still not standardized or mentioned in the documentation.

franknoel avatar Jan 29 '24 19:01 franknoel