Serialized Form
-
Package com.graphql_java_generator.gradleplugin
-
Class com.graphql_java_generator.gradleplugin.GenerateGraphQLSchemaExtension
class GenerateGraphQLSchemaExtension extends CommonExtension implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
resourceEncoding
String resourceEncoding
The encoding for the generated resource files -
targetFolder
File targetFolder
The folder where the generated GraphQL schema will be stored -
targetResourceFolder
String targetResourceFolder
The folder where the generated resources will be generated -
targetSchemaFileName
String targetSchemaFileName
The name of the target filename, in which the schema is generated. This file is stored in the folder, defined in the targetFolder plugin parameter.
-
-
Class com.graphql_java_generator.gradleplugin.GeneratePojoExtension
class GeneratePojoExtension extends GraphQLExtension implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
generateJacksonAnnotations
Boolean generateJacksonAnnotations
The Jackson annotations are necessary to properly deserialize the json, that is incoming from the GraphQL Server. Setting this property to false allows to not generate them.
If this property is set to true, the Jackson annotations are added in the generated GraphQL objects. The Jackson dependencies must then be added to the target project, so that the project compiles.
The default value is:
- true when in client mode.
- false when in server mode.
-
-
Class com.graphql_java_generator.gradleplugin.GraphQLExtension
class GraphQLExtension extends GenerateServerCodeExtension implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
generateDeprecatedRequestResponse
boolean generateDeprecatedRequestResponse
Since 1.7.1 version
Generates a XxxxResponse class for each query/mutation/subscription, and (if separateUtilityClasses is true) Xxxx classes in the util subpackage. This allows to keep compatibility with code Developed with the 1.x versions of the plugin.
The best way to use the plugin is to directly use the Xxxx query/mutation/subscription classes, where Xxxx is the query/mutation/subscription name defined in the GraphQL schema.
Default value is true
-
mode
com.graphql_java_generator.plugin.conf.PluginMode mode
The generation mode: either client or server. Choose client to generate the code which can query a graphql server or server to generate a code for the server side.
-
-