code: function addToListP(listPath, id) {
    // TODO: Need to listen to the add event ??
    return this.record.getListP(listPath).then(l => {
      if (typeof id === 'string') addEntry(l, id);
      else id.forEach(v => addEntry(l, v));
      return l;
    });
  }
docs: function setExistingRecordP(name, obj, deepMerge, overwrite, deepMergeCustomizer) { // TODO: Remove in future release return this.record.getExistingRecordP(name).then(r => { if (deepMerge) { const record = r.get(); if (deepMergeCustomizer) r.set(mergeWith(record, obj, deepMergeCustomizer)); else r.set(merge(record, obj)); } else if (overwrite) { r.set(obj); } else { Object.keys(obj).forEach(key => r.set(key, obj[key])); } return r; }); }