Please activate JavaScript!
Please install Adobe Flash Player, click here for download

AvocadoDB Query Language - Jan Steemann

© 2012 triAGENS GmbH | 2012-04-04 53 Graph queries  Task: find direct friends of users  Data: users are related (friend relationships) to other users  Example data (vertex collection „users“): [ { "_id": 123, "name": "John", "age": 25 }, { "_id": 456, "name": "Tina", "age": 29 }, { "_id": 235, "name": "Bob", "age": 15 }, { "_id": 675, "name": "Phil", "age": 12 } ]  Example data (edge collection „relations“): [ { "_id": 1, "_from": 123, "_to": 456 }, { "_id": 2, "_from": 123, "_to": 235 }, { "_id": 3, "_from": 456, "_to": 123 }, { "_id": 4, "_from": 456, "_to": 235 }, { "_id": 5, "_from": 235, "_to": 456 }, { "_id": 6, "_from": 235, "_to": 675 } ]