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

Method _unpack_response

pymongo/synchronous/cursor.py:863–871  ·  view source on GitHub ↗
(
        self,
        response: Union[_OpReply, _OpMsg],
        cursor_id: Optional[int],
        codec_options: CodecOptions,  # type: ignore[type-arg]
        user_fields: Optional[Mapping[str, Any]] = None,
        legacy_response: bool = False,
    )

Source from the content-addressed store, hash-verified

861 return self
862
863 def _unpack_response(
864 self,
865 response: Union[_OpReply, _OpMsg],
866 cursor_id: Optional[int],
867 codec_options: CodecOptions, # type: ignore[type-arg]
868 user_fields: Optional[Mapping[str, Any]] = None,
869 legacy_response: bool = False,
870 ) -> Sequence[_DocumentOut]:
871 return response.unpack_response(cursor_id, codec_options, user_fields, legacy_response)
872
873 def _get_read_preference(self) -> _ServerMode:
874 if self._read_preference is None:

Callers

nothing calls this directly

Calls 1

unpack_responseMethod · 0.45

Tested by

no test coverage detected