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 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 interface DataFetchersDelegateMutationType
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
      name - 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 interface DataFetchersDelegateMutationType
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
      idCharacter - 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.