API Reference permit_absinthe v#0.3.1

Copy Markdown View Source

Modules

Integration between Permit authorization and Absinthe GraphQL.

Middleware for loading and authorizing resources in Absinthe. Uses the raw resolver function defined in Permit.Absinthe.Resolvers.LoadAndAuthorize to put the resolution outcome in :loaded_resource or :loaded_resources (depending on whether it's an index-like or a single-item action).

This module contains the dataloader-based resolver function that performs authorization based on rules defined with Permit.

Absinthe resolver that loads and authorizes a resource or list of resources by combining Permit's authorization rules with Ecto-based query scoping.

This module provides a way to extract meta information from a field's return type in a resolver.

Prototype schema for Absinthe.

Mix Tasks

Installs Permit.Absinthe into your project by patching the Absinthe schema module to include use Permit.Absinthe.