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

Method _unpack_response

pymongo/asynchronous/cursor.py:865–873  ·  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

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

Callers

nothing calls this directly

Calls 1

unpack_responseMethod · 0.45

Tested by

no test coverage detected