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

kenhuuu pushed a commit to branch master-http-final
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit 7c9936597a79efe82cd51975c0f4604f78c48780
Author: Ken Hu <[email protected]>
AuthorDate: Mon Oct 21 10:19:12 2024 -0700

    Update GraphSONv4 RequestMessage documentation CTR
    
    Documentation showed incorrect format that had a fields object that
    should have been flattened out.
---
 docs/src/dev/io/graphson.asciidoc | 52 +++++++++++++++------------------------
 1 file changed, 20 insertions(+), 32 deletions(-)

diff --git a/docs/src/dev/io/graphson.asciidoc 
b/docs/src/dev/io/graphson.asciidoc
index 60daf6b9a0..8d70cd2509 100644
--- a/docs/src/dev/io/graphson.asciidoc
+++ b/docs/src/dev/io/graphson.asciidoc
@@ -2695,33 +2695,23 @@ The following `RequestMessage` is an example of a 
simple sessionless request for
 ----
 {
   "gremlin": "g.V(x)",
-  "fields": {
+  "materializeProperties": "tokens",
+  "timeoutMs": {
+    "@type": "g:Int64",
+    "@value": 1000
+  },
+  "g": "g",
+  "bindings": {
     "@type": "g:Map",
     "@value": [
-      "materializeProperties",
-      "tokens",
-      "timeoutMs",
+      "x",
       {
-        "@type": "g:Int64",
-        "@value": 1000
-      },
-      "g",
-      "g",
-      "bindings",
-      {
-        "@type": "g:Map",
-        "@value": [
-          "x",
-          {
-            "@type": "g:Int32",
-            "@value": 1
-          }
-        ]
-      },
-      "language",
-      "gremlin-groovy"
+        "@type": "g:Int32",
+        "@value": 1
+      }
     ]
-  }
+  },
+  "language": "gremlin-groovy"
 }
 ----
 
@@ -2729,15 +2719,13 @@ The following `RequestMessage` is an example of a 
simple sessionless request for
 ----
 {
   "gremlin": "g.V(x)",
-  "fields": {
-    "materializeProperties": "tokens",
-    "timeoutMs": 1000,
-    "g": "g",
-    "bindings": {
-      "x": 1
-    },
-    "language": "gremlin-groovy"
-  }
+  "materializeProperties": "tokens",
+  "timeoutMs": 1000,
+  "g": "g",
+  "bindings": {
+    "x": 1
+  },
+  "language": "gremlin-groovy"
 }
 ----
 

Reply via email to