I changed my queries to relational-pouch but now when i use pouchdb-find it returns an empty array. My code looks like this:
this.$db.createIndex({ index: { fields: ['name', 'code'] } });
this.$db.find({
selector: {
_id: { $gte: null },
name: name,
},
});
When i save with db.put() it works normally.
My way of getting started with PouchDB was:
The advantage of that is you get a clear view into the data records created. It was only after working in that way that I realized that ´relational pouch´ stores everything it wants to manage in an attribute of the stored record called ´data´.
Is it possible that your ´ find ´ ´selector ´ should be ´data.name: name´?