question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow a directory of schemas to be passed in

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kobylynskyicommented, Apr 2, 2020

@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)

1reaction
kobylynskyicommented, Mar 31, 2020

@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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found