Skip to main content

Module mongodb

Module mongodb 

Source
Expand description

MongoDB wire protocol parser (OP_MSG only, modern MongoDB 3.6+) All integers are little-endian.

Functions§

extract_mongo_full_command
Extract full command detail (for Detail panel) — mongosh-style replayable statements.
format_mongo_response_detail
Format detailed response for the detail panel.
mongo_msg_len
Get the total message length from a MongoDB wire protocol header. Returns None if buffer is too small or length is invalid.
parse_mongo_request
Parse a MongoDB request (client→server), returning a command summary.
parse_mongo_response
Parse a MongoDB response (server→client), returning a summary.