View Source Neuron.Fragment (neuron v5.1.0)

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

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

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

example

Example

iex> Neuron.Fragment.register("
...>  NameParts on Person {
...>    firstName
...>    lastName
...>  }
...> ")
:ok
Link to this function

register(context, query_string)

View Source
@spec register(context :: :global | :process, query_string :: String.t()) :: :ok