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

MongoDB driver for Erlang

Results 63 mongodb-erlang issues
Sort by recently updated
recently updated
newest added

The spec for `mc_cursor:next/1` looks like this(https://github.com/comtihon/mongodb-erlang/blob/master/src/connection/mc_cursor.erl#L40): ``` -spec next(pid()) -> error | {bson:document()}. ``` and the `bson:document()` is a tuple. It seems like what the cursor really returns is...

In my last issue I provided error, regarded to mc_cursor **https://github.com/comtihon/mongodb-erlang/issues/200**. Could please some fix it - add to mc_worker.erl one clause `get_database(#getmore{}, ConnState) -> ConnState#conn_state.database;`

Good day. I've got such errors ``` Got unhandled message {:EXIT, #PID, {:function_clause, [{:mc_worker, :get_database, [{:getmore, "bets", 0, 24434158653}, {:conn_state, :unsafe, :master, "dev_db"}], [file: 'service/deps/mongodb/src/connection/mc_worker.erl', line: 220]}, {:mc_worker, :process_read_request, 3,...

Hello! Looks like I've faced a performance issue while trying to get a big amount of data from the collection. Please look through the code which reproduces the issue. The...

```erlang get_field( = Bin, _, _, _) -> %Bin= error_logger:info_msg("Bin=~p",[Bin]), erlang:error(unknown_bson_tag, []). ```` There is not Tag = 19 , so crash ... i find the reason : DECIMAL128 field...

How can i perform operation like $gt,$or,$and,$lt? I tried some combination but not working and I am not able to find any documentation also. I tried like this `Selector =...

Could you please advise on the correct use of `next` and `next_batch` with regards to aggregates with `batchSize` set? If I set `batchSize` to 1 and call either of these...

In `mc_worker_api`, an `update` goes like ```erlang update(Connection, Coll, Selector, Doc, Upsert, MultiUpdate) -> Converted = prepare(Doc, fun(D) -> D end), command(Connection, {, Coll, , [#{ => Selector, => Converted,...

We would like to use your driver. Did you think upload it to hex.pm? Thanks

If we use mc_worker_api:update with the following way: ``` Database = . {ok, Connection} = mc_worker_api:connect ([{database, Database}]). Command = { , , , 500, , {, , , },...