How to write new Marshallable
for the below case class.
case class CCWithLabelAndId(
s: String,
@id id: Int,
l: Long,
o: Option[String],
seq: Seq[String],
map: Map[String, String],
nested: NestedClass)
Taken from MarshallableSpec
from gremlin-scala
library. Seq
and Option
works without creating new Marshallable
as explained in the documentation.
Also what should be cardinality and datatype for map and nested classes when defining the schema of such vertexes.