MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / command_response

Method command_response

pymongo/message.py:1511–1513  ·  view source on GitHub ↗

Unpack a command response.

(self, codec_options: CodecOptions[Any])

Source from the content-addressed store, hash-verified

1509 return bson._decode_all_selective(self.payload_document, codec_options, user_fields)
1510
1511 def command_response(self, codec_options: CodecOptions[Any]) -> dict[str, Any]:
1512 """Unpack a command response."""
1513 return self.unpack_response(codec_options=codec_options)[0]
1514
1515 def raw_command_response(self) -> bytes | memoryview:
1516 """Return the bytes of the command response."""

Callers 2

write_commandMethod · 0.45
write_commandMethod · 0.45

Calls 1

unpack_responseMethod · 0.95

Tested by

no test coverage detected