message – Tools for creating messages to be sent to MongoDB

    Note

    This module is for internal use and is generally not needed by application developers.

    (collection_name, spec, safe, last_error_args, opts, flags=0, ctx=None)

    Get a delete message.

    http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-delete

    pymongo.message.get_more(collection_name, num_to_return, cursor_id, ctx=None)

    Get a getMore message.

    (collection_name, docs, check_keys, safe, last_error_args, continue_on_error, opts, ctx=None)

    pymongo.message.kill_cursors(cursor_ids)

    Get a killCursors message.

    (options, collection_name, num_to_skip, num_to_return, query, field_selector, opts, check_keys=False, ctx=None)

    Get a query message.

    Get an update message.