Open michielbdejong opened 8 years ago
What do you need from info/collections ? Is this related to: https://github.com/mozilla-services/syncto/issues/51 ?
I'm not so sure if we really need this though, or we can do without.
It was for https://bugzilla.mozilla.org/show_bug.cgi?id=1204830#c0 but I guess it's just a 'nice to have' that can save some roundtrips if people sync 2 or more collections that don't change often.
Yes we can probably add an utility endpoint to provide this information if you need it.
SyncClient exposes various methods including
info_collections
,get_records
andget_record
. Of these, Syncto only exposesget_records
(from here) andget_record
(from here).It turns out that although
meta/global
lives on /storage/meta/global and can be fetched using eitherget_records(meta)
orget_record(meta, global)
,info/collections
lives outside /storage, directly on /info/collections, and therefore we cannot access it via Syncto.