Allow a directory of schemas to be passed in
See original GitHub issueIs 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 schemasschemaFilePattern
: 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to Easily Apply Amazon Cloud Directory Schema ...
Now, Amazon Cloud Directory makes it easier for you to apply schema changes across your directories with in-place schema upgrades.
Read more >Chapter 4, Active Directory Schema
The schema is the blueprint for data storage in Active Directory. Each object in Active Directory is an instance of a class in...
Read more >Type Checking - Open Policy Agent
When a directory path is passed, annotations will be used in the code to indicate what expressions map to what schemas (see below)....
Read more >33 Managing Directory Schema - Oracle Help Center
The schema defines and governs the types of information objects that can be stored in a directory. A schema defines the types of...
Read more >Documentation: 15: 5.9. Schemas - PostgreSQL
By default, users cannot access any objects in schemas they do not own. To allow that, the owner of the schema must grant...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joffrey-bion I would like to reopen this feature request in order to track the changes which need to be made in gradle and maven plugins (after #34 will be merged)
@joffrey-bion sure, I would appreciate it if you can work on this feature. From the implementation POV, I like your option to remove schemas from the constructor and pass them as a parameter to generate() method. We are free to change that because as of now there are only 2 usages of this class (gradle and maven plugins)