You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2022. It is now read-only.
Users create a changefeed like hz('notifications').findAll({recipient: userId}).watch(), and can do store to send a notification to another user, and update to mark their own notifications as read.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A simple notification scheme:
Users create documents in the 'notifications' collection.
Each document has a
sender
,receiver
andread
fieldPermissions would be:
collection('notifications').store({sender: context.id, recipient: any(), read: false})
collection('notifications').findAll({ recipient: context.id }).anyRead()
collection('notifications').update({ recipient: context.id, read: any() })
Users create a changefeed like
hz('notifications').findAll({recipient: userId}).watch()
, and can dostore
to send a notification to another user, andupdate
to mark their own notifications as read.The text was updated successfully, but these errors were encountered: