-
Notifications
You must be signed in to change notification settings - Fork 138
Sync Function API
Chris Anderson edited this page May 28, 2013
·
8 revisions
The sync function is the core API you'll be interacting with on the Sync Gateway. For simple applications it may be the only server-side code you need to write. For more complex applications it will still be a primary touch point for managing data routing and access control.
Learn about channels and user authentication here and read this page for a detailed example.
If you don't supply a sync function we'll use this as a default:
function (doc) {
channel(doc.channels);
}