This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SchemaDefinition.TestClass | |
import akka.actor.ActorSystem | |
import sangria.macros.derive._ | |
import sangria.schema._ | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._ | |
import akka.http.scaladsl.model.StatusCodes._ | |
import akka.http.scaladsl.server.Directives._ | |
import akka.http.scaladsl.server._ | |
import akka.stream.ActorMaterializer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class B(name: String) | |
case class A(name: String, seq: Seq[B]) | |
case class X(name: String, seq: Seq[A]) | |
val data: Seq[Tuple3[String, String, String]] = Seq( | |
("X", "Left", "Some value"), | |
("X", "Left", "Some other value"), | |
("X", "Right", "A third value"), |