Skip to content

Allow a directory of schemas to be passed in #30

@joffrey-bion

Description

@joffrey-bion

Is your feature request related to a problem? Please describe.
When we want to break the schema down into many parts (for scalability), it's very inconvenient to have to maintain a list of schemas to process (either in the code or in a gradle/maven plugin).

Describe the solution you'd like
It would be nice to be able to specify a directory so that graphql-java-codegen processes all the schema files inside.

A couple of useful related options to consider:

  • recursive: whether directories should be explored recursively to find schemas
  • schemaFilePattern: a pattern (Java style) to match the schema files to process (would most likely default to .*\.graphqls)
  • excludeFiles: a list of schema files to exclude

Describe alternatives you've considered
The alternatives so far are:

  • to list all files manually (most likely in the maven plugin)
  • to write custom code (maybe as another plugin/task) to build the list of files

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions