You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2021/12/28 19:14:42 UTC

[tinkerpop] 06/13: TINKERPOP-2630 Clarifying note on GraphSON 1.0 configuration CTR

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch ci-fix
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit a02dd7579b70aa9cd23a2314c7040a6ab5bcc1c9
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Mon Oct 25 14:18:20 2021 -0400

    TINKERPOP-2630 Clarifying note on GraphSON 1.0 configuration CTR
---
 docs/src/reference/gremlin-applications.asciidoc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index ecd11b2..748c04c 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -1561,6 +1561,11 @@ $ curl -H "Accept:application/vnd.gremlin-v3.0+json" -X POST -d "{\"gremlin\":\"
 {"requestId":"9fdf0892-d86c-41f2-94b5-092785c473eb","status":{"message":"","code":200,"attributes":{"@type":"g:Map","@value":[]}},"result":{"data":{"@type":"g:List","@value":[{"@type":"g:Int32","@value":99}]},"meta":{"@type":"g:Map","@value":[]}}
 ----
 
+IMPORTANT: `GraphSONMessageSerializerGremlinV1d0` configures `application/vnd.gremlin-v1.0+json`, but this mime type does
+not support text serialization (i.e. `MessageTextSerializer`) which means that it cannot be used for the serializing
+results to the HTTP endpoint in Gremlin Server. GraphSON 1.0 must be configured with `application/json` using the
+`GraphSONMessageSerializerV1d0` as demonstrated above.
+
 ===== Gryo
 
 The Gryo serializer utilizes Kryo-based serialization which produces a binary output.  This format is best consumed