Cursors
class ApiCursor
close()
filter(fn)
find(fn)
forEach(fn)
hasNext()
isClosed()
map(fn)
next()
passthru()
reduce(fn, memo)
toArray()
class BufferedApiCursor extends ApiCursor
batchSize(size)
hasMore()
shared(shared)
passthru(replay) {
class WritableBufferedApiCursor extends BufferedApiCursor
push(...objects)
class db.Cursor extends BufferedApiCursor
access(access)
getOptions()
grant(grant)
indexed(indexed) {
locale(locale)
maxTimeMS(ms)
pathPrefix(path)
roles(...roles)
skipAcl(skipAcl)
strict(strict)
toList()
transform(script)
class AggregationCursor extends db.Cursor
addFields(addFields)
group(group)
limit(limit)
match(match)
native(native)
project(project)
skip(skip)
sort(sort)
unwind(unwind)
class QueryCursor extends db.Cursor
count()
where(where)
expand(...paths)
paths(...paths)
include(...paths)
passive(passive)
limit(limit)
skip(skip)
sort(sort)
Last updated
Was this helpful?