Rajska.Schema (Rajska v1.3.2) View Source

Concatenates Rajska middlewares with Absinthe middlewares and validates Query Authorization configuration.

Link to this section Summary

Link to this section Functions

Link to this function

add_field_authorization(middleware, field, object)

View Source

Specs

Link to this function

add_object_authorization(middlewares)

View Source

Specs

add_object_authorization([Absinthe.Middleware.spec(), ...]) :: [
  Absinthe.Middleware.spec(),
  ...
]
Link to this function

add_query_authorization(middlewares, field, authorization)

View Source

Specs

add_query_authorization(
  [Absinthe.Middleware.spec(), ...],
  Absinthe.Type.Field.t(),
  module()
) :: [Absinthe.Middleware.spec(), ...]
Link to this function

validate_query_auth_config!(config, authorization, query_name)

View Source

Specs

validate_query_auth_config!(
  [
    permit: atom(),
    scope: false | module(),
    args: %{} | [] | atom(),
    optional: false | true,
    rule: atom()
  ],
  module(),
  String.t()
) :: :ok | Exception.t()