[ 
https://issues.apache.org/jira/browse/TINKERPOP-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453571#comment-16453571
 ] 

ASF GitHub Bot commented on TINKERPOP-1944:
-------------------------------------------

Github user aaronjwood commented on the issue:

    https://github.com/apache/tinkerpop/pull/852
  
    Can the docs be fixed surrounding this as well? The docs show:
    ```
    const graph = new Graph();
    const g = graph.traversal().withRemote(new 
DriverRemoteConnection('ws://localhost:8182/gremlin'));
    ```
    which doesn't match up at all with what you really need to do: 
https://groups.google.com/d/msg/gremlin-users/YyHXS579cyw/t3TnQG_BAgAJ
    
    The concept of importing the module and showing where to access these 
classes (`gremlin.driver` or `gremlin.structure` for example) is missing, which 
will make people have to hunt down where the classes really are.


> JavaScript GLV: DriverRemoteConnection is not exported in the root module
> -------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1944
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1944
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: javascript
>    Affects Versions: 3.2.8, 3.3.2
>            Reporter: Jorge Bay
>            Priority: Major
>             Fix For: 3.3.3, 3.2.9
>
>
> {{DriverRemoteConnection}} should be exported inside the driver module.
> Users can still access the {{DriverRemoteConnection}} class using the path:
> {code:javascript}
> const DriverRemoteConnection = 
> require('./node_modules/gremlin/lib/driver/driver-remote-connection.js');
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to