Mongo.Session.start_session

You're seeing just the function start_session, go back to Mongo.Session module for more information.
Link to this function

start_session(topology_pid, read_write_type, opts \\ [])

View Source

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, [])