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

Function externalCommand

src/cmap/auth/gssapi.ts:29–35  ·  view source on GitHub ↗
(
  connection: Connection,
  command: ReturnType<typeof saslStart> | ReturnType<typeof saslContinue>
)

Source from the content-addressed store, hash-verified

27};
28
29async function externalCommand(
30 connection: Connection,
31 command: ReturnType<typeof saslStart> | ReturnType<typeof saslContinue>
32): Promise<{ payload: string; conversationId: number }> {
33 const response = await connection.command(ns('$external.$cmd'), command);
34 return response as { payload: string; conversationId: number };
35}
36
37let krb: Kerberos;
38

Callers 1

authMethod · 0.85

Calls 2

nsFunction · 0.90
commandMethod · 0.45

Tested by

no test coverage detected