Skip to content

Instantly share code, notes, and snippets.

@anotherhale
anotherhale / SangriaMutationExample.scala
Last active September 11, 2018 19:13 — forked from OlegIlyenko/SangriaMutationExample.scala
Simple example of a mutation with complex input type argument
import sangria.schema._
import sangria.execution._
import sangria.macros._
import sangria.macros.derive._
import sangria.marshalling.circe._
import scala.concurrent.ExecutionContext.Implicits.global
import io.circe.generic.auto._
import enumeratum._
sealed trait Genre extends EnumEntry