https://github.com/ztrzaska/graphql-kotlin
Implementation of GraphQL API with kotlin and Spring boot
https://github.com/ztrzaska/graphql-kotlin
graphql graphql-client graphql-server
Last synced: 5 months ago
JSON representation
Implementation of GraphQL API with kotlin and Spring boot
- Host: GitHub
- URL: https://github.com/ztrzaska/graphql-kotlin
- Owner: ztrzaska
- Created: 2023-01-26T15:37:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-08T20:32:00.000Z (over 3 years ago)
- Last Synced: 2025-06-13T14:18:12.580Z (about 1 year ago)
- Topics: graphql, graphql-client, graphql-server
- Language: Kotlin
- Homepage:
- Size: 64.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL with kotlin and spring boot project
### Getting Started
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
### Playground
```
http://localhost:9001/playground
```
### Example queries
```
query {
getPeople {
__typename,
name,
... on Author {
age
},
... on Programmer {
language
}
},
getComputations {
type,
getResult
},
getUnion {
__typename
}
}
```
## Documentation of used libraries
* [GraphQL documentation](https://graphql.org/)
* [GraphQL Extended scalars documentation](https://github.com/graphql-java/graphql-java-extended-scalars)
* [Spring boot](https://docs.spring.io/spring-boot/docs/current/reference/html/)