Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.17 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.17 KB

Example of GraphQL with Scala

An example Scala GraphQL server written with akka-http and sangria.

Running the example

sbt ~reStart

SBT will automatically compile and restart the server whenever the source code changes.

After the server is started you can run queries interactively using GraphiQL by opening http://localhost:8080 in a browser.

Database Configuration

This example uses an in-memory H2 SQL database. The schema and example data will be re-created every time server starts.

If you would like to change the database configuration or use a different database, then please update src/main/resources/application.conf.

master branch has the newest version of code, but if you want to repeat and test what I did during presentation there are state1 to state5 branches for this purpose, additionally there are patch files that would help observe what changed during every stage