I am stuck with a Similar issue.
Trying to get a derived input object from a case class.
val UserInputType = deriveInputObjectType[UserRow]()
case class UserRow(id: Int, name: String, fullName: Option[String] = None, lastModifiedTime: Option[java.sql.Timestamp] = None)
but getting this following error
Type Option[java.sql.Timestamp] cannot be used as a default value. Please consider defining an implicit instance of `ToInput` for it.
How do I define a ToInput for Type Option[java.sql.Timestamp]. Not able to find an example. Please help.
Is is something like this ?
implicit val OptionalTime = new ToInput[Option[Timestamp], BigInt] {
override def toInput(value: Option[Timestamp]): (BigInt, InputUnmarshaller[BigInt]) = (value.get.getNanos(), ??? )
}
Not able to find an example of how to use ToInput Trait for Timestamp.
Stuck with what needs to be filled up for ???