Neuron.Fragment.register

You're seeing just the function register, go back to Neuron.Fragment module for more information.

Specs

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
Link to this function

register(context, query_string)

View Source

Specs

register(context :: :global | :process, query_string :: String.t()) :: :ok