The following application illustrate simple functionalities with graphQL API and kotlin. It has queries and mutations. To reduce development time, automatic graphql schema generation was used.
Graphql server was integrated with com.expediagroup libraries, which are dedicated for kotlin.
The application contains two projects:
- graphql-kotlin - graphql server
- graphql-kotlin-client - graphql client which connects to the graphql server
http://localhost:9001/playground
query {
getPeople {
__typename,
name,
... on Author {
age
},
... on Programmer {
language
}
},
getComputations {
type,
getResult
},
getUnion {
__typename
}
}