Skip to content

Commit

Permalink
Merge pull request #90 from vukanac/master
Browse files Browse the repository at this point in the history
Update specs for Mongo.find/4 with error tuple
  • Loading branch information
zookzook authored Apr 19, 2021
2 parents 5a9dc74 + 10ff12b commit 2b10649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ defmodule Mongo do
Mongo.find(top, "jobs", %{}, batch_size: 2)
"""
@spec find(GenServer.server, collection, BSON.document, Keyword.t) :: cursor
@spec find(GenServer.server, collection, BSON.document, Keyword.t) :: cursor | {:error, term()}
def find(topology_pid, coll, filter, opts \\ []) do

filter = case normalize_doc(filter) do
Expand Down

0 comments on commit 2b10649

Please sign in to comment.