Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemaPaths multiple files #18

Closed
wnederhof opened this issue Oct 24, 2021 · 1 comment
Closed

schemaPaths multiple files #18

wnederhof opened this issue Oct 24, 2021 · 1 comment

Comments

@wnederhof
Copy link

For larger GraphQL projects, it may happen that multiple schema files are required. In that case, for each and every GraphQL schema file, you'll have to add it to the pom. Is it possible to add support for adding paths? E.g.:

                    <schemaPaths>
                        <param>src/main/resources/schema/*.graphqls</param>
                    </schemaPaths>
@deweyjose
Copy link
Owner

deweyjose commented Nov 14, 2021

I think this is already supported.

<configuration>
    <schemaPaths>
        <path>src/main/resources/schema</path>
    </schemaPaths>
</configuration>

@wnederhof let me know if this doesn't solve your problem. My example repo has multiple schema files, the plugin is able to generate all of the types across each .graphqls file in this folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants