Skip to content

Commit

Permalink
doc: fix update_all doc (#228)
Browse files Browse the repository at this point in the history
* doc: fix update_all doc

* update README
  • Loading branch information
LKlemens authored Feb 10, 2024
1 parent 9d13924 commit 44a08f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,7 @@ pip3 install 'mtools[all]'
export PATH=to-your-mongodb/bin/:$PATH
ulimit -S -n 2048 ## in case of Mac OS X
mlaunch init --setParameter enableTestCommands=1 --replicaset --name "rs_1"
mongosh --host localhost:27017 --eval 'rs.initiate({_id: "rs_1", members: [{_id: 0, host: "127.0.0.1:27017"}, {_id: 1, host: "127.0.0.1:27018"}, {_id: 2, host: "127.0.0.1:27019"}]})'
mix test --exclude ssl --exclude socket
```

Expand Down
2 changes: 1 addition & 1 deletion lib/mongo/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ defmodule Mongo.Repo do
MyApp.Repo.update_all(Post, %{title: "old"}, %{"$set" => %{title: "updated"}})
"""
@callback update_all(module :: module(), filter :: BSON.document(), update :: BSON.document(), opts :: Keyword.t()) ::
{:ok, Mongo.UpdateResult.t()}
{:ok, Mongo.result(Mongo.UpdateResult.t())}

@doc """
Deletes all documents for the given collection module and filter.
Expand Down

0 comments on commit 44a08f0

Please sign in to comment.