java.lang.Object
com.graphql_java_generator.client.request.Fragment

public class Fragment extends Object
Author:
etienne-sf
  • Constructor Details

    • Fragment

      public Fragment(QueryTokenizer qt, Map<Class<?>,Map<String,Field>> aliasFields, String packageName, boolean inlineFragment, Class<?> clazz, String schema) throws GraphQLRequestPreparationException
      Reads a Fragment definition, from the current QueryTokenizer.
      Parameters:
      qt - The QueryTokenizer, that just read the "fragment" keyword, or the "..." for inline fragment
      aliasFields - This maps contains the Field, that matches each alias, of each GraphQL type. This allows a proper deserialization of each alias value returned in the json response
      packageName - The package name is used to load the java class that has been generated for the given fragment's GraphQL type
      inlineFragment - true if this fragment is an inline fragment. In this case, there is no fragment name to read.
      clazz - The owning class is mandatory for inlineFragment: if the "on Type" clause is not give, we need it to load the proper java class (that represents the proper GraphQL type)
      schema - value of the springBeanSuffix plugin parameter for the searched schema. When there is only one schema, this plugin parameter is usually not set. In this case, its default value ("") is used.
      Throws:
      GraphQLRequestPreparationException
  • Method Details