Example of using generated by plugin client code #609
-
Hi! I'm looking for some examples of code how to call GraphQL API from kotlin. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey Eugene
In particular, you can take a look at the following class to see how request/response classes are being used: https://github.com/kobylynskyi/graphql-java-codegen/blob/master/plugins/gradle/example-client/src/main/java/io/github/kobylynskyi/order/external/product/ProductServiceGraphQLClient.java |
Beta Was this translation helpful? Give feedback.
-
This is a Github client example for kotlin/scala/java https://github.com/jxnu-liguobin/github-graphql-client/blob/master/src/main/kotlin/io/github/graphql/example/KotlinClientExample.kt implemnet by dynamic proxy. A simpler example of kotlin: https://github.com/kobylynskyi/graphql-java-codegen/blob/master/plugins/gradle/example-client-kotlin/src/main/kotlin/io/github/dreamylost/QueryResolverImpl.kt |
Beta Was this translation helpful? Give feedback.
Hey Eugene
Feel free to check following modules:
In particular, you can take a look at the following class to see how request/response classes are being used: https://github.com/kobylynskyi/graphql-java-codegen/blob/master/plugins/gradle/example-client/src/main/java/io/github/kobylynskyi/order/external/product/ProductServiceGraphQLClient.java