Initializing...

Result Classes

Return types for database operations.

OperationResult

The standard return type for most SDK operations (insert_one, update_one, etc.).

Properties

  • success bool

    True if the operation completed successfully.

  • data Any

    Raw response data from the server.

  • error Optional[str]

    Error message if operation failed.

Helper Accessors

inserted_id The ID of the inserted document (insert_one).
inserted_ids List of IDs (insert_many).
modified_count Number of documents modified (update).
deleted_count Number of documents deleted (delete).
documents List of documents found (find).

FindResult

Subclass of OperationResult returned by find().

all() -> List[Dict]

Returns all matching documents as a list.

Last updated: Dec 14, 2025