https://github.com/sysgears/scala-graphql-error-handling-example
https://github.com/sysgears/scala-graphql-error-handling-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sysgears/scala-graphql-error-handling-example
- Owner: sysgears
- License: mit
- Created: 2019-02-22T15:05:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T15:07:08.000Z (over 7 years ago)
- Last Synced: 2025-03-28T23:21:58.451Z (about 1 year ago)
- Language: Scala
- Size: 56.6 KB
- Stars: 4
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Error handling in GraphQL API written in Scala
[](https://travis-ci.org/kmusienko/graphql-error-handling)
This is an example of a GraphQL server written with Play framework and Sangria that shows how to implement error handling in GraphQL API.
## How to start
Run the application:
`sbt run`
After launch, the application will be accessible on `localhost:9000`. The application uses in-memory H2 database that
is initialized by Play evolutions. When you start the application, you will see an error page with a suggestion to run
the SQL script. Click `Apply this script now!`.
## Sources
https://graphql.org/
https://www.playframework.com/documentation/2.6.x/ScalaHome
https://sangria-graphql.org/learn/
https://facebook.github.io/graphql/#sec-Errors