Graph Like Structure inside Couchbase

How would I go about storing (and querying) a graph structure inside Couchbase.

Let’s say for example a I have users and users have follows and friends (which are both connections to other users), what would be the ideal way to store this data in a way I can easily retrieve a users friends, friends of friends, friends of follows of friends …?

I couldn’t find anything about it online.

Thanks for your help!

1 Like

Check this out

1 Like