plug_graphql v0.2.0 GraphQL.Plug.ConfigurableValue

This module provides the functions that are used for evaluating configuration options that can be set as raw strings, or functions in the form of {ModuleName, :function} or in the syntax of &ModuleName.function/arity

In order for a function to be callable it needs to be an arity of 1 accepting a Plug.Conn.

Summary

Types

t ::
  {module, atom} |
  (Plug.Conn.t -> Map) |
  Map |
  nil

Functions

evaluate(conn, root_fn, default)

Specs

evaluate(Plug.Conn.t, t, any) :: Map