our API returns an array of documents that have changed locally and not yet replicated to remote. But somehow our current API reads like it would return the delta changes that have not been synced, instead of the entire documents:
api.getLocalChanges()
.then(function(changes) {
// what is changes here?
})
I wonder if we could make it more clear that the API returns an array of changes instead of just docs, like
api.getLocallyChangedDocs()
.then(function(changedDocs) {
// array of docs with local changes
})
Another idea would be to make an API that behaves similar to db.changes(), like
our API returns an array of documents that have changed locally and not yet replicated to remote. But somehow our current API reads like it would return the delta changes that have not been synced, instead of the entire documents:
I wonder if we could make it more clear that the API returns an array of changes instead of just docs, like
Another idea would be to make an API that behaves similar to
db.changes()
, likebut that feels like to low level.
Naming things is hard™ – any thoughts?