Mocca code generator should take as input a GraphQL schema file, and configuration, and produce as output the Mocca client, plus all required POJOs (used in the operation method parameters) and DTOs (used in the operation method return types).
Requirements
Take as input a GraphQL schema file plus optional configuration
Produce as output:
The Mocca client Java interface
All required POJOs (used in the generated client interface operation method parameters)
All required DTOs (used in the generated client interface operation method return types)
The code generator should be written as a Java library (it should not have an entry point)
A second module should be created as a CLI application to execute the code generator
Mocca code generator library should be added as module mocca-codegen
Mocca code generator CLI should be added as module mocca-codegen-cli
A Maven or Gradle plugin might be developed in the future, but they are out of scope for this issue
End user documentation should be updated explaining how to use Mocca code generator
Mocca code generator should take as input a GraphQL schema file, and configuration, and produce as output the Mocca client, plus all required POJOs (used in the operation method parameters) and DTOs (used in the operation method return types).
Requirements
mocca-codegen
mocca-codegen-cli