Class DataFetchersDelegateQueryTypeImpl
java.lang.Object
org.starwars.server.datafetchersdelegate.DataFetchersDelegateQueryTypeImpl
- All Implemented Interfaces:
DataFetchersDelegateQueryType
@Component
public class DataFetchersDelegateQueryTypeImpl
extends Object
implements DataFetchersDelegateQueryType
- Author:
- etienne-sf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncharacters
(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, Episode episode) This method loads the data for QueryType.characters.This method loads the data for QueryType.droid.This method loads the data for QueryType.hero.This method loads the data for QueryType.human.
-
Constructor Details
-
DataFetchersDelegateQueryTypeImpl
public DataFetchersDelegateQueryTypeImpl()
-
-
Method Details
-
hero
public Character hero(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, Episode episode) Description copied from interface:DataFetchersDelegateQueryType
This method loads the data for QueryType.hero.- Specified by:
hero
in interfaceDataFetchersDelegateQueryType
- Parameters:
dataFetchingEnvironment
- The GraphQLDataFetchingEnvironment
. It gives you access to the full GraphQL context for this DataFetcherepisode
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-
characters
public List<Character> characters(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, Episode episode) Description copied from interface:DataFetchersDelegateQueryType
This method loads the data for QueryType.characters.- Specified by:
characters
in interfaceDataFetchersDelegateQueryType
- Parameters:
dataFetchingEnvironment
- The GraphQLDataFetchingEnvironment
. It gives you access to the full GraphQL context for this DataFetcherepisode
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-
human
Description copied from interface:DataFetchersDelegateQueryType
This method loads the data for QueryType.human.- Specified by:
human
in interfaceDataFetchersDelegateQueryType
- Parameters:
dataFetchingEnvironment
- The GraphQLDataFetchingEnvironment
. It gives you access to the full GraphQL context for this DataFetcherid
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-
droid
Description copied from interface:DataFetchersDelegateQueryType
This method loads the data for QueryType.droid.- Specified by:
droid
in interfaceDataFetchersDelegateQueryType
- Parameters:
dataFetchingEnvironment
- The GraphQLDataFetchingEnvironment
. It gives you access to the full GraphQL context for this DataFetcherid
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-