diff --git a/lib/mongo.ex b/lib/mongo.ex index 9f7187d1..10688732 100644 --- a/lib/mongo.ex +++ b/lib/mongo.ex @@ -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