You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree with @danielmewes that we shouldn't special case 0 and have limit(0) return zero documents, that's what you've asked for after all. Adding support for limit(null) on the other hand sounds reasonable.
Not sure what nth(null) would do though, and I'm not sure there's much use for a skip(null) that skips all documents either.
I think, at least limit(null) and skip(null) have intuitive English meanings; "no limit" and "skip nothing"... (and as usual :) even more intuitive in Python: limit(None) and skip(None))
However, nth(null) is less intuitive... if it even makes any sense?
Example (I use rethinkdbdash):
r.table(tableNotification).orderBy(r.desc('time')).limit(limit)
is better than:
After comment @danielmewes in rethinkdb/docs#1133 I think, that null will be good to get all records.
Also nth and skip should the same option.
The text was updated successfully, but these errors were encountered: