arangodb / arangojs

The official ArangoDB JavaScript driver.
https://arangodb.github.io/arangojs
Apache License 2.0
600 stars 106 forks source link

With aql template strings, I can use Document/EdgeCollections in templates but not Graphs. #740

Closed earslap closed 2 years ago

earslap commented 3 years ago

Is this intended? Inside ${} within an aql template, I can refer to document collection objects directly and the templating system does its interpolation job, but if I use a Graph object inside ${} the queries fail. I have to explicitly use ${myGraph.name} and refer to it by name for the query to work. Is this intended behavior?

alexgorbatchev commented 3 years ago

Can also confirm this. Same question. Feels unintentionally broken.

awlayton commented 2 years ago

This issue seems to be back?

If I do ${myGraph} it gets a key like @value0 but the query fails unless I change it to value0 manually, or use ${myGraph.name}.