neuron v0.8.0 Neuron.Fragment

Summary

Functions

registers a fragment that will automatically be added to future mutations and queries that require it

Functions

register(query_string)
register(query_string :: String.t) :: :ok

registers a fragment that will automatically be added to future mutations and queries that require it

Example

iex> Neuron.Fragment.register("
...>  NameParts on Person {
...>    firstName
...>    lastName
...>  }
...> ")
:ok
register(context, query_string)
register(context :: :global | :process, query_string :: String.t) :: :ok