Mongo.Repo.exists-question-mark

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

exists?(module, filter)

View Source (optional)

Specs

exists?(module :: module(), filter :: BSON.document()) :: boolean()

Checks whether there are any documents in the given collection module for the given filter.

Returns a boolean.

Example

MyApp.Repo.exists?(Post, %{title: title})