Closed cayuu closed 9 years ago
One option is to always treat numbers as 'skip' and strings as 'start at id'. However, that fails if the system is storing ids as numbers. offset: "10"
will mean searching for id:"10"
and will not find id:10
. Options:
offset: "10"
means id:"10"
, offset:"+10"
means id:10
)offset
for ids and skip
for numbersoffset: {skip:25}
and offset: {id:25}
Last option is intuitively most appealing.
Could also:
offset: 25
= skip
offset: {id: 25}
To simplify the default?
Worth noting that {id:25}
looks a lot like a simple match object. This could actually facilitate offsetByArbitrary.
Landed bc2cf2e65b720
There is currently no mechanism to differentiate an offset by id or by a number to skip.
Currently the spec only provides for:
This is not clear whether we mean to skip 10 records or to start at record
id
"10".