I am going through the tutorial on Arangodb which is using a sample game of thrones dataset. I am trying to figure out how I would be able to filter out characters based on a trait?
INSERT {
"name": "Ned",
"surname": "Stark",
"alive": true,
"age": 41,
"traits": ["A","H","C","N","P"]
} INTO Characters
I am trying to use the following code but its not working. Would the above traits be an array. if so how do I proceed?
for c in Characters
Filter c.traits =="A"
RETURN c
Thank you!