Mongo.Session.start_session
You're seeing just the function
start_session
, go back to Mongo.Session module for more information.
Specs
start_session(GenServer.server(), atom(), keyword()) :: {:ok, t()} | {:error, term()}
Start a new session for the topology_pid
. You need to specify the type
: :read
for read and :write
for write
operations.
Example
{:ok, session} = Session.start_session(top, :write, [])