如何将数据从 ydn-db web app 同步到后端服务器?

how to sync data from ydn-db web app to backend server?

使用 ydn-dn,我想自动将来自我的网络应用程序的数据与我的 REST 后端同步。
我阅读了文档并在示例中进行了搜索,但无法使其正常工作。
https://yathit.github.io/ydn-db/synchronization.html
http://dev.yathit.com/api/ydn/db/schema.html#sync

我试图用这样的同步配置定义一个模式:

var schema = {
  stores: [ {
      name: 'contact',
      keyPath: 'id',
      Sync: {
        format: 'rest',
        transport: service,
        Options: {
          baseUri: '/'
        }
      }
    }
  ]
};

并创建了一个传输函数:

var service = function(args) {
    console.log("contact synch");
};

但我的服务函数从未被调用过。
我当然误解了 YDN-db 的工作原理,但我没有找到任何示例。

为了完成,这是一个 jsfiddle: http://jsfiddle.net/asicfr/y7sL7b3j/

请看例子http://yathit.github.io/ydndb-demo/entity-sync/app.html

较早的示例 http://yathit.github.io/sprintly-service/playground.html from https://github.com/yathit/sprintly-service