AT
Apache TinkerPopaustinjb32
I can't create an edge in aws neptune using gremlin. I can create vertices. but not edge.
import { driver, process as gremlinProcess, structure } from "gremlin";
async function checkOut() {
const DriverRemoteConnection = driver.DriverRemoteConnection;
const Graph = structure.Graph;
const dc = new DriverRemoteConnection(
ws://localhost:7070/gremlin
, {
sloppy: true,
rejectUnauthorized: false,
});
const traversal = gremlinProcess.AnonymousTraversalSource.traversal();
const _ = gremlinProcess.traversal();
const graph = new Graph();
const g = graph.traversal().withRemote(dc);
const v1 = await g.addV("person").property("name", "main").next();
const v2 = await g.addV("person").property("name", "male").next();
const data = await g.addE("wrote").from(g.V(v1.value.id)).to(g.V(11)).next();
g.V()
.toList()
.then((data) => {
console.log("DATA", data);
dc.close();
})
.catch((error) => {
console.log("ERROR", error);
dc.close();
});
}
checkOut();Solution
Valentyn Kahamlyk•100d ago
g.V(11)
is not valid query for Neptune, vertex id should be string value https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-differences.html#feature-gremlin-differences-vertex-edge-idsGremlin standards compliance in Amazon Neptune - Amazon Neptune
Overview of differences between the Neptune and TinkerPop implementations of Gremlin.
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1.3KMembers
View on DiscordWant results from more Discord servers?
More PostsIterating over responsesI've got a query akin to this in a python application using `gremlin-python`:
```
t = traversal().wAWS Neptune updating gremlin driver to 3.6.2 introduced many bugs to working queriesAfter updating Amazon Neptune engine version from 1.2.0.2 to 1.2.1.0 and the Gremlin.Net (C# nuget) vertex-label-with-given-name-does-not-existERROR with Janusgraph 0.5.3vertex-label-with-given-name-does-not-exist
ERROR with Janusgraph 0.5.3 while adding labels to vertiDocumentation states there should be a mid-traversal .E() step?Just wondering if I'm missing something, or if the docs are mistaken. It's possible to do a mid-travDisabling strategies via string in remote driverIs there a way to disable a strategy in a providers implementation without a reference to the class?LazyBarrierStrategy/NoOpBarrierStep incompatible with path-tracking👋🏻 Hi all!
In this JanusGraph post (https://discord.com/channels/981533699378135051/1195313165278Is there a way to store the tinkerpop graph in DynamoDB?AWS provides Neptue graph database but problem with it is that it is not distributed and can't be hoConnection to Azure cosmos db using GoHi All, Asking this as a newbie to Graphs databases in general.
I have been trying to connect to an