Mongo.Repo.exists-question-mark
You're seeing just the callback
exists-question-mark
, go back to Mongo.Repo module for more information.
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})