Mongo.Ecto.Helpers.regex
You're seeing just the function
regex
, go back to Mongo.Ecto.Helpers module for more information.
Specs
regex(String.t(), String.t()) :: Mongo.Ecto.Regex.t()
Creates proper regex object that can be passed to the database.
Usage in queries
from p in Post,
where: fragment(title: ^regex("elixir", "i"))
For supported options please see Mongo.Ecto.Regex
module documentation.