Open jay-jlm opened 7 years ago
Let me know if this is expected behavior of it should be patched
Here's the error:
res[i].id = res[i]._id; TypeError: Cannot read property '_id' of null
And here is the view:
function(doc) { if (doc._id.indexOf("test") == 0) { emit( [doc._id , 0], null) emit( [doc._id , 1], { _id: doc.index }) emit( [doc._id , 2], { _id: doc.productType } ) } }
Let me know if this is expected behavior of it should be patched
Here's the error:
And here is the view: