Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
I can't create an edge in aws neptune using gremlin. I can create vertices. but not edge. - Apache TinkerPop
AT
Apache TinkerPop
•
2y ago
•
3 replies
austinjb32
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
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
g.V(11)
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-ids
Gremlin standards compliance in Amazon Neptune - Amazon Neptune
Overview of differences between the Neptune and TinkerPop implementations of Gremlin
.
Jump to solution
Apache TinkerPop
Join
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,376
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Was this page helpful?
Yes
No
Similar Threads
Recent Announcements
Similar Threads
Gremlin with AWS Neptune
AT
Apache TinkerPop / questions
2y ago
AWS Neptune and gremlin-javascript versions
AT
Apache TinkerPop / questions
3y ago
MergeE using the gremlin javascript client on AWS Neptune don't work
AT
Apache TinkerPop / questions
3y ago
Neptune, Gremlin Java & Bindings
AT
Apache TinkerPop / questions
13mo ago