neuron v0.3.0 Neuron.Config
Allows to interact with your graphql configuration.
Summary
Functions
gets url configuration value for Neuron
sets global/process configuration values for Neuron
Functions
gets url configuration value for Neuron
iex>Neuron.Config.set(url: "http://example.com/graph")
iex>Neuron.Config.get(:url)
"http://example.com/graph"
iex>Neuron.Config.set(headers: [name: "value"])
iex>Neuron.Config.get(:headers)
[name: "value"]
iex>Neuron.Config.get(:invalid)
nil
sets global/process configuration values for Neuron
iex> Neuron.Config.set(url: "http://example.com/graph")
:ok
iex> Neuron.Config.set(headers: ["name": "val"])
:ok
iex> Neuron.Config.set(:process, url: "http://example.com/graph")
:ok