MCPcopy Create free account
hub / github.com/Automattic/mongoose / _transformForAsyncIterator

Function _transformForAsyncIterator

lib/cursor/QueryCursor.js:386–388  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

384 */
385
386function _transformForAsyncIterator(doc) {
387 return doc == null ? { done: true } : { value: doc, done: false };
388}
389
390/**
391 * Get the next doc from the underlying cursor and mongooseify it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected