Class DataFetchersDelegateMutationTypeImpl
java.lang.Object
org.starwars.server.datafetchersdelegate.DataFetchersDelegateMutationTypeImpl
- All Implemented Interfaces:
DataFetchersDelegateMutationType
@Component
public class DataFetchersDelegateMutationTypeImpl
extends Object
implements DataFetchersDelegateMutationType
- Author:
- etienne-sf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFriend
(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, String idCharacter, String idFriend) This method loads the data for MutationType.addFriend.createHuman
(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, String name, String homePlanet) This method loads the data for MutationType.createHuman.
-
Constructor Details
-
DataFetchersDelegateMutationTypeImpl
public DataFetchersDelegateMutationTypeImpl()
-
-
Method Details
-
createHuman
public Human createHuman(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, String name, String homePlanet) Description copied from interface:DataFetchersDelegateMutationType
This method loads the data for MutationType.createHuman.- Specified by:
createHuman
in interfaceDataFetchersDelegateMutationType
- Parameters:
dataFetchingEnvironment
- The GraphQLDataFetchingEnvironment
. It gives you access to the full GraphQL context for this DataFetchername
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.homePlanet
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-
addFriend
public Character addFriend(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, String idCharacter, String idFriend) Description copied from interface:DataFetchersDelegateMutationType
This method loads the data for MutationType.addFriend.- Specified by:
addFriend
in interfaceDataFetchersDelegateMutationType
- Parameters:
dataFetchingEnvironment
- The GraphQLDataFetchingEnvironment
. It gives you access to the full GraphQL context for this DataFetcheridCharacter
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.idFriend
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-