Neuron.Fragment (neuron v5.0.0) View Source
This module can be used to register fragments to be used in your GraphQL queries
Link to this section Summary
Functions
registers a fragment that will automatically be added to future mutations and queries that require it
Link to this section Functions
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
Specs
register(context :: :global | :process, query_string :: String.t()) :: :ok