I'm trying to select a value from an injected array and set it as a value in the property step. This is failing because I can't use the select step inside the property step.
This is my current failing query:
await g
?.inject([
{ twitterPostId: 'tay', like: true, retweet: false },
{ twitterPostId: 'fay', like: true, retweet: false },
])
.unfold()
.as('a')
.select('twitterPostId')
.as('t')
.V()
.hasId(__.select('t'))
.fold()
.coalesce(__.unfold(), __.addV().property(t.id, __.select('t'))
.next();
Any thoughts on how else I could accomplish that?