Mongo.Repo.get

You're seeing just the callback get, go back to Mongo.Repo module for more information.
Link to this callback

get(module, id, opts)

View Source (optional)

Specs

get(module :: module(), id :: BSON.ObjectId.t(), opts :: Keyword.t()) ::
  Mongo.Collection.t() | nil | {:error, any()}

Returns a single document struct for the collection defined in the given module and bson object id.

Returns nil if no result was found.

If multiple documents satisfy the query, this method returns the first document according to the natural order which reflects the order of documents on the disk.

For all options see Options

Example

MyApp.Repo.get(Post, id)
MyApp.Repo.get(Post, id, read_concern: %{level: "local"})