GraphProcessor
class GraphProcessor(discoveryPlugin: AbstractDiscoveryPlugin<*>, val logger: AbstractLogger = DefaultGraphLogger(), val fragmentPatcher: FragmentPatcher = FragmentPatcher(
defaultExtension = discoveryPlugin.targetExtension,
logger = logger,
)) : AbstractGraphProcessor(source)
GraphQL annotation processor that resolves graphql queries, mutations and fragments by a given file name declared in GraphQuery
Parameters
discoveryPlugin
A plugin which handles the discovery of .graphql files in this case we will be using AssetManagerDiscoveryPlugin
Constructors
Link copied to clipboard
constructor(discoveryPlugin: AbstractDiscoveryPlugin<*>, logger: AbstractLogger = DefaultGraphLogger(), fragmentPatcher: FragmentPatcher = FragmentPatcher(
defaultExtension = discoveryPlugin.targetExtension,
logger = logger,
))
Properties
Link copied to clipboard
The target directory to look in within assetManager
Link copied to clipboard
The default extension to use for looking up graphql files
Link copied to clipboard
An optional fragment patcher
Link copied to clipboard
Returns a pair of query or mutation name and graphql contents
Link copied to clipboard
A custom logger facade which should be used
Functions
Link copied to clipboard
Finds graphql content matching the value provided by GraphQuery