UNPKG

autorev

Version:

blindly update couchdb documents

15 lines (14 loc) 376 B
{ _id : '_design/record', views : { all : function (doc) { if (doc.type === 'record') emit(null, doc) }, by_experiment : function (doc) { if (doc.type === 'record') emit(doc.experiment, doc) }, by_session : function (doc) { if (doc.type === 'record') emit(doc.session, doc) } } }