View Source Permit.Ecto.Types (permit_ecto v0.2.2)
Defines Ecto-specific types for usage with Permit.
Link to this section Summary
Types
Allows defining a base Ecto query based on current resolution context, e.g. query parameters, request URL or anything else (depending on execution context).
Allows manipulating the query after it has been constructed by Permit's query builder,
but before it is executed by Permit.Ecto.Resolver
.
Link to this section Types
@type base_query() :: (Permit.Types.resolution_context() -> Ecto.Query.t())
Allows defining a base Ecto query based on current resolution context, e.g. query parameters, request URL or anything else (depending on execution context).
@type finalize_query() :: (Ecto.Query.t(), Permit.Types.resolution_context() -> Ecto.Query.t())
Allows manipulating the query after it has been constructed by Permit's query builder,
but before it is executed by Permit.Ecto.Resolver
.