Is that codegen supports the schema in json format? #972
-
Is that codegen supports the schema in json format? |
Beta Was this translation helpful? Give feedback.
Answered by
kobylynskyi
Apr 9, 2022
Replies: 1 comment
-
@dbazim yes, this plugin supports parsing GraphQL schema in both .graphqls and .json formats. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kobylynskyi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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