Class DataFetchersDelegateImpl
java.lang.Object
com.graphql_java_generator.plugin.language.impl.DataFetchersDelegateImpl
- All Implemented Interfaces:
DataFetchersDelegate
* This class represents a GraphQL Data Fetcher Delegate. A DataFetchersDelegate aggregates all
Thus there are two kinds of
The arguments for the data fetcher delegates are the arguments of its field.
DataFetcher
for a GraphQL type. It is only used when in server mode, the GraphQL maven plugin generates on data fetcher delegate
for each object whose fields need at least one data fetcher. This helps to limit the impact on the specific code,
when the GraphQL schema changes. Their characteristics are read by GenerateCodeDocumentParser
, and used by
GenerateCodeGenerator
and the Velocity templates to generate the code of the DataFechers, and their
declaration in the GraphQLProvider.Thus there are two kinds of
DataFetchersDelegate
:
- The
DataFetchersDelegate
for regular GraphQL objects. TheseDataFetcher
s are used to read non scalar fields, that is: fields that are subjects, like friends of the human types, in the StarWars schema. - The
DataFetchersDelegate
for queries, mutations and subscriptions type. TheseDataFetchersDelegate
are actually the entry points of the GraphQL server. For suchDataFetchersDelegate
s, each field is actually aDataFetcher
.
The arguments for the data fetcher delegates are the arguments of its field.
- Author:
- etienne-sf
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.graphql_java_generator.plugin.language.DataFetchersDelegate
getBatchLoaders, getCamelCaseName, getDataFetchers, getPascalCaseName, getType
-
Constructor Details
-
DataFetchersDelegateImpl
-
-
Method Details
-
getName
Description copied from interface:DataFetchersDelegate
The name of the DataFetcher. This name is a valid java classname identifier, and is the name to use as a method name.- Specified by:
getName
in interfaceDataFetchersDelegate
- Returns:
-