jiamo commented on issue #1956:
URL:
https://github.com/apache/incubator-hugegraph/issues/1956#issuecomment-1240165168
我看文档里面有句话
>
因为Gremlin-Console只能通过WebSocket连接HugeGraph-Server,默认HugeGraph-Server是对外提供HTTP连接的,所以先修改gremlin-server的配置
现在的配置文件已经是: `
org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer`
使用 tinkpop 默认的 golang 或者 python 应该可以直接使用了。
那么这种错误
> code:243 message:Could not alias [g]
应该只是别名的问题。 那么想要那个使用默认客户端, `可以通过"aliases": {"graph": "hugegraph", "g":
"__g_hugegraph"} 为图和遍历器添加别名后使用别名操作` 应该怎么使用呢?
使用curl 可以加上 ` --graph hugegraph` rest api 可以 在 request body 里面加上 alias
```
{
"gremlin": "g.E('S1:marko>2>>S2:lop')",
"bindings": {},
"language": "gremlin-groovy",
"aliases": {
"graph": "hugegraph",
"g": "__g_hugegraph"
}
}
```
但默认的客户端一般直接: `client, _ :=
gremlingo.NewClient("ws://127.0.0.1:8182/gremlin")` 并没有修改名字的地方。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]