Thanks Jens, this make sense for user A follows B and C. How would handle 
so you could see User A is followed by C and D? Would you need to have a 
relationship doc type, that defines the relationship between each user and 
this gets added to the channel of each user in the relationship?

Cheers
Joel

On Tuesday, April 12, 2016 at 1:51:00 AM UTC+10, Jens Alfke wrote:
>
>
> On Apr 11, 2016, at 6:44 AM, Joel W <[email protected] <javascript:>> 
> wrote:
>
> So would you create a channel per user? and followers of this user are 
> added to that users channel so the followers get post syncing to their 
> device?
>
>
> Yup. And the way to add a followers to the user’s channel is to add the 
> user ID to a document property, and use the `access` function in the sync 
> function to give them access. The simplest way would be to have a document 
> owned by a user, that lists whom they want to follow; then the app just 
> edits this document to add or remove subscriptions.
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/db8d492b-54a5-4bfc-8a62-a7a3a5348c40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to