You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2018/10/29 08:20:47 UTC

[GitHub] jorgebay commented on a change in pull request #966: TINKERPOP-2070: Introduce Connection and ResultSet abstractions

jorgebay commented on a change in pull request #966: TINKERPOP-2070: Introduce Connection and ResultSet abstractions
URL: https://github.com/apache/tinkerpop/pull/966#discussion_r228830790
 
 

 ##########
 File path: docs/src/upgrade/release-3.2.x-incubating.asciidoc
 ##########
 @@ -112,18 +112,19 @@ Gremlin Javascript can now submit script, with optional bindings, using the `Cli
 [source,javascript]
 ----
 const gremlin = require('gremlin');
-const connection = new gremlin.driver.Client('ws://localhost:8182/gremlin', { traversalSource: 'g' });
+const client = new gremlin.driver.Client('ws://localhost:8182/gremlin', { traversalSource: 'g' });
 
-connection.submit('g.V().tail()')
-    .then(response => {
-        console.log(response.traversers.length);
-        console.log(response.traversers[0]);
+client.submit('g.V().tail()')
 
 Review comment:
   Yes, the idea is to hide a deprecated property :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services