JanusGraph custom types


schwartz@...
 
Edited

Hi!

Is there a way to add custom property types to JanusGraph (similar to RelationIdentifier / Geoshape) to be later used by the 
GraphSON serializer? Ideally without re-building JanusGraph.

Due to some downstream limitations, we sometimes can't serialize Python datetime objects. It would be great if we could somehow add a custom step such that .values("date-field").as_iso() would return the field in ISO 8601.

Many thanks!


schwartz@...
 

I've seen this - https://docs.janusgraph.org/advanced-topics/serializer/
But an example would greatly help (btw, we develop mostly in Python).