Utils and snippets for the sangria grapqhl library for scala.
build.sbt
resolvers += Resolver.sonatypeRepo("public")
libraryDependencies ++= Seq(
"de.cap3" %% "sangria-utils" % "0.1"
)
conf/application.conf
play.modules.enabled += "de.cap3.sangria.SangriaModule"
To use the common scalar types, you have to add the following import:
import de.cap3.sangria.CommonSchema._