Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Do
-
3.2.2
-
None
-
None
Description
The current Java GraphSON implementation and that in the Python GLV leave some question about what should be returned from a simple traversal like `g.V()`.
The java implementation presently assumes that properties could be present and returns a DetachedVertex: https://github.com/apache/tinkerpop/blob/master/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONSerializersV2d0.java#L420-L433
The python implementation assumes no such thing and returns something more reminiscent of a ReferenceVertex: https://github.com/apache/tinkerpop/blob/master/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py#L238-L242
Is the java version overreaching, and should not expect properties unless a step calls for them (e.g. ` g.V().valueMap()` or `g.V().values('name')`, or should the Python version be expanded?
Is there something we can do to establish guidelines for this, and align these APIs?
Attachments
Issue Links
- relates to
-
TINKERPOP-1565 Setup GraphSON 3.0
- Closed
-
TINKERPOP-1592 Add withDetachment() and specify the "detachment" model.
- Closed
-
TINKERPOP-1701 HaltedTraverserStrategy should recurse into collections for detachment.
- Closed
- links to