db.createIndex({
index: {
fields: ['name'],
},
})
db.find({
selector: {
name: {$regex: RegExp(query, 'i')},
},
sort: ['name'],
})
db.get(id)
.then(function(doc) {
doc._deleted = true;
return db.put(doc);
})
--
You received this message because you are subscribed to the Google Groups "PouchDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pouchdb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pouchdb/f3f00070-0dac-4ba8-8d6e-327e126eecdbo%40googlegroups.com.