MCPcopy
hub / github.com/mongodb/node-mongodb-native / clone

Method clone

test/unit/cursor/abstract_cursor.test.ts:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 super(client, ns('test.test'), options);
17 }
18 clone(): ConcreteCursor {
19 return new ConcreteCursor(new MongoClient('mongodb://iLoveJavascript'));
20 }
21 async _initialize(session: ClientSession): Promise<InitialCursorResponse> {
22 const response = CursorResponse.emptyGetMore;
23 return { server: {} as Server, session, response };

Calls

no outgoing calls

Tested by

no test coverage detected