Schemer (schemer v0.1.0)

Resolve identifier to a value.

Link to this section Summary

Link to this section Types

@type result_t() :: term()
@type run_opts() :: [context: %{}, root_value: term(), resolve_name: atom()]
Link to this type

run_result()

@type run_result() :: {:ok, result_t()} | {:error, atom()}
Link to this type

run_result(t)

@type run_result(t) :: {:ok, t} | {:error, atom()}

Link to this section Functions

Link to this function

run(identifier, schema, opts \\ [])

@spec run(String.t(), Schemer.Schema.t(), run_opts()) :: run_result()