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

Function write

test/cursor.destroy.initialization.test.js:236–236  ·  view source on GitHub ↗
(document, encoding, callback)

Source from the content-addressed store, hash-verified

234 const destination = new Writable({
235 objectMode: true,
236 write(document, encoding, callback) { callback(); }
237 });
238
239 await assert.rejects(pipeline(cursor, destination), error => error === hookError);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected