Skip to content

Is that codegen supports the schema in json format? #972

Answered by kobylynskyi
dbazim asked this question in Q&A
Discussion options

You must be logged in to vote

@dbazim yes, this plugin supports parsing GraphQL schema in both .graphqls and .json formats.
You can supply the path to JSON file via the following property in your pom.xml / build.gradle / build.sbt:
graphqlQueryIntrospectionResultPath.
Sample of the supported JSON schema: https://github.com/kobylynskyi/graphql-java-codegen/blob/master/src/test/resources/introspection-result/sample-introspection-query-result.jsonresult.json

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kobylynskyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants