Skip to content

Commit a0d8ca7

Browse files
authored
Merge pull request #1 from phanmn/find-one-spec
Add error return to find one pec
2 parents d31162e + c1b3a94 commit a0d8ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ defmodule Mongo do
770770
Mongo.find_one(top, "jobs", %{}, read_concern: %{level: "local"})
771771
"""
772772
@spec find_one(GenServer.server(), collection, BSON.document(), Keyword.t()) ::
773-
BSON.document() | nil
773+
BSON.document() | nil | {:error, any}
774774
def find_one(topology_pid, coll, filter, opts \\ []) do
775775
opts =
776776
opts

0 commit comments

Comments
 (0)