Couchbase Lite - 同步参考字段

Couchbase Lite - synchronising reference fields

Couchbase Lite 在使用 Sync Gateway 与 Couchbase Server 同步时如何处理 Ottoman's ref 字段?

试图让自己熟悉 Couchbase,在观看和阅读 Couchbase Server 和 Couchbase Lite 组合后 (This video, this tutorial, and official docs),我不明白 Lite 如何反映服务器中定义的数据模型。

在我看来,Lite 和 Server 不太相似,尽管它们都代表 NoSQL 数据库。您以不同的方式定义、存储和处理数据。尽管如此,Sync Gateway 允许 Lite 与 Server 同步。

主要问题来了 - 在使用 Sync Gateway 进行同步时,在基于 Ottoman 的服务器 (check Model References here) 中定义的 ref 字段如何反映在 Lite 中?

如果我只是理解引用或同步的概念完全错误,请纠正我。

Couchbase Server 和Couchbase Mobile 的文档模型非常相似。主要区别在于 Couchbase Mobile 将“_”前缀字段保留为元数据。除此之外,它们都提供 JSON 以字符串键命名的文档。

我对 Ottoman 一无所知,但听起来 'ref' 字段只包含一个字符串,该字符串是目标文档的 ID。这对两者都有效。

知道的是,Ottoman 在文档中使用了一个名为 _type 的字段名称,这使得它与 Couchbase Mobile 不兼容。 Sync Gateway 将拒绝包含以下划线前缀的属性的文档。我不知道是否有办法告诉 Ottoman 使用不同的 属性 名称。