In MySql we create simple users friendships database with two models users and friendships.
Model friendships contain keys:
- id
- from (ref. key)
- to (ref. key)
- created
- modified
- approved (0,1)
- block (0,1)
What is the correct way to make the same in ArangoDB, Can there be a "friendships" edge document with added key - values? Is it possible to perform update edge document? Also, is it possible these values show after performing the request as a result?
Give me an example.
First create a "users" collection and a "friendship" collection.
Create two users
and a relationship between them
Check the users
and their neighbors
add "block"
The return will return the whole document. You can also only return the block attribute