@ View ( name = "by_when_action_was_performed" , map = "function(doc) { if(doc.whenActionWasPerformed) { emit(doc.whenActionWasPerformed, doc) } }" ) public List < CouchDbAuditActionContext > findAuditRecordsSince ( final LocalDate localDate ) { return db . queryView ( createQuery ( "by_when_action_was_performed" ) . startKey ( localDate ) . includeDocs ( true ) , CouchDbAuditActionContext . class ) ; }
Find audit records since + localDate + .