All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sbt-graphql.AddConsignment.scala Maven / Gradle / Ivy

package graphql.codegen
import java.util.UUID
import java.time.ZonedDateTime
import java.time.LocalDateTime
import io.circe.{ Decoder, Encoder }
import io.circe.generic.semiauto.{ deriveDecoder, deriveEncoder }
import sangria.macros._
import types._
object AddConsignment {
  object addConsignment extends GraphQLQuery {
    val document: sangria.ast.Document = graphql"""mutation addConsignment($$addConsignmentInput: AddConsignmentInput!) {
  addConsignment(addConsignmentInput: $$addConsignmentInput) {
    consignmentid
    seriesid
  }
}"""
    case class Variables(addConsignmentInput: AddConsignmentInput)
    object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
    case class Data(addConsignment: AddConsignment)
    object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
    case class AddConsignment(consignmentid: Option[UUID], seriesid: Option[UUID])
    object AddConsignment {
      implicit val jsonDecoder: Decoder[AddConsignment] = deriveDecoder[AddConsignment]
      implicit val jsonEncoder: Encoder[AddConsignment] = deriveEncoder[AddConsignment]
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy