mongodb-erlang icon indicating copy to clipboard operation
mongodb-erlang copied to clipboard

OP_MSG support?

Open peffis opened this issue 5 years ago • 0 comments

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.

peffis avatar Feb 13 '20 09:02 peffis