Versioned.with_versions
You're seeing just the function
with_versions
, go back to Versioned module for more information.
Specs
with_versions(Ecto.Queryable.t(), Ecto.Schema.t() | nil) :: Ecto.Query.t()
Build the query to populate the :version_id
virtual field on a versioned
entity.
query
may be any existing base query for the entity which is versioned.
mod
, if defined, should be the entity module name itself. If not defined,
query
must be this module name and not any type of query.