Example: Global Data
The simplest sync rules are for "global" data — synced to all users.
For example, put the following sync rules in your
sync-rules.yaml
:bucket_definitions:
global:
data:
# Sync all todos
- SELECT * FROM todos
# Sync all lists except archived ones
- SELECT * FROM lists WHERE archived = false
Last modified 13h ago