Listing friends

To compute local leaderboards, you might want to join a player’s blob with their friends blob. This N1QL query shows you how to do that.

SELECT jungleville.level, friends 
FROM jungleville USE KEYS "zid-jungle-0002" 
JOIN jungleville.friends
     ON KEYS jungleville.friends

Thank you for exploring N1QL. Remember, this was just a quick tutorial. Download N1QL today and try out more complex queries.