mongodb-erlang
mongodb-erlang copied to clipboard
OP_MSG support?
Are there any plans (or work done) to support the new (since mongo 3.6) OP_MSG opcode? https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#op-msg
When connecting to a mongodb that only supports the new format you will currently, with mongodb-erlang, simply get a
#{<<"code">> => 303,
<<"errmsg">> => <<"Legacy opcodes are not supported">>,
<<"ok">> => 0.0}
, for any operation that you perform (connecting seems to work though).
This happens for instance if you use this library against DocumentDB in Amazon AWS, which seems to only implement the new API.