Permit.Ecto.Types (permit_ecto v0.2.4)

View Source

Defines Ecto-specific types for usage with Permit.

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.

Types

base_query()

@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).

finalize_query()

@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.