ProcaWeb.Resolvers.AuthNotation (proca v3.4.1)
Provides macros to handle auth flow in schema files.
For queries:
load :campaign, by: [:id]
- fetch a record by primary or secondary identifierdetermine_auth for: result
- use after a resolution. Provides a relevant Auth context for interfaces to be resolved (public vs private)
For mutatuins an queries
allow
- allow list of permissions to run that mutation or receive that value
Link to this section Summary
Functions
allow [:manage_orgs, :perm2, :perm3]
determine_auth for: :result
load :campaign, by: [:id, :external_id, :name]
Link to this section Functions
allow [:manage_orgs, :perm2, :perm3]
determine_auth for: :result
load :campaign, by: [:id, :external_id, :name]
Link to this function