如何在pouchDB中为数组中的每个对象添加新的字段/属性?

时间:2017-12-15 16:49:36

标签: pouchdb

我在pouchDB中有两个表A和B.表A中的一列引用表B.假设表A具有a1,a2,b1列,而表B具有b1,b2和b3列。我从A中检索了一个项目列表。这里代替表A中的b1列,我想要表B的列b2。我怎么能在pouchDB中做到这一点。

const localDB = new PouchDB('A');
const remoteDB = new PouchDB('http://user:pass@127.0.0.1:5984/A');
localDB.find({selector: { "a1": { $eq: "search_value" }}, function (err, results) {
    return results;
});

0 个答案:

没有答案