@@ -255,7 +255,7 @@ defmodule Mongo do
255
255
returning the first notification after the token. This will allow users to watch collections that have been dropped and recreated
256
256
or newly renamed collections without missing any notifications. (since 4.0.7)
257
257
"""
258
- @ spec watch_collection ( GenServer . server , collection , [ BSON . document ] , fun , Keyword . it ) :: cursor
258
+ @ spec watch_collection ( GenServer . server , collection | 1 , [ BSON . document ] , fun , Keyword . it ) :: cursor
259
259
def watch_collection ( topology_pid , coll , pipeline , on_resume_token \\ nil , opts \\ [ ] ) do
260
260
261
261
stream_opts = % {
@@ -676,7 +676,7 @@ defmodule Mongo do
676
676
end
677
677
678
678
@ doc false
679
- @ spec exec_command_session ( pid , BSON . document , Keyword . t ) :: { :ok , BSON . document | nil } | { :error , Mongo.Error . t }
679
+ @ spec exec_command_session ( GenServer . server , BSON . document , Keyword . t ) :: { :ok , BSON . document | nil } | { :error , Mongo.Error . t }
680
680
def exec_command_session ( session , cmd , opts ) do
681
681
682
682
Logger . debug ( "Executing cmd with session: #{ inspect cmd } " )
@@ -691,7 +691,7 @@ defmodule Mongo do
691
691
end
692
692
693
693
@ doc false
694
- @ spec exec_command ( pid , BSON . document , Keyword . t ) :: { :ok , BSON . document | nil } | { :error , Mongo.Error . t }
694
+ @ spec exec_command ( GenServer . server , BSON . document , Keyword . t ) :: { :ok , BSON . document | nil } | { :error , Mongo.Error . t }
695
695
def exec_command ( conn , cmd , opts ) do
696
696
697
697
Logger . debug ( "Executing cmd: #{ inspect cmd } " )
@@ -715,7 +715,7 @@ defmodule Mongo do
715
715
716
716
{:ok, 8}
717
717
"""
718
- @ spec wire_version ( pid ) :: { :ok , integer } | { :error , Mongo.Error . t }
718
+ @ spec wire_version ( GenServer . server ) :: { :ok , integer } | { :error , Mongo.Error . t }
719
719
def wire_version ( topology_pid ) do
720
720
with { :ok , wire_version } <- Topology . wire_version ( topology_pid ) do
721
721
{ :ok , wire_version }
@@ -740,7 +740,7 @@ defmodule Mongo do
740
740
read_only: false
741
741
}}
742
742
"""
743
- @ spec limits ( pid ) :: { :ok , BSON . document } | { :error , Mongo.Error . t }
743
+ @ spec limits ( GenServer . server ) :: { :ok , BSON . document } | { :error , Mongo.Error . t }
744
744
def limits ( topology_pid ) do
745
745
with { :ok , limits } <- Topology . limits ( topology_pid ) do
746
746
{ :ok , limits }
0 commit comments