From 7d0d83705d515896dae604137f2dec73d786034e Mon Sep 17 00:00:00 2001 From: Jorge Bay Gondra Date: Fri, 20 Apr 2018 14:15:02 +0200 Subject: [PATCH] JavaScript GLV: Document lack of GraphSON3 support --- docs/src/reference/gremlin-variants.asciidoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc index f731702ee4f..2ba996655ad 100644 --- a/docs/src/reference/gremlin-variants.asciidoc +++ b/docs/src/reference/gremlin-variants.asciidoc @@ -499,6 +499,19 @@ Very similar to Gremlin-Python and Gremlin-Java, there are various ways to submi * `Traversal.next()` * `Traversal.toList()` +=== GraphSON3 Support + +GraphSON3, which is the default serialization format in Gremlin Server 3.3+, is not yet supported in Gremlin-JavaScript. +We are planning to support it in the upcoming versions. In the meantime, if you want to use Gremlin-JavaScript against +the Gremlin Server 3.3 you must include the GraphSON2 serializer. + +In the server yaml configuration file, add the following line under `serializers`: + +[source] +---- + - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0, config: { ioRegistries: [org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistryV2d0] }} +---- + === Static Enums and Methods Gremlin has various tokens (e.g. `t`, `P`, `order`, `direction`, etc.) that are represented in Gremlin-JavaScript as