Created
September 10, 2014 16:37
-
-
Save rin/0f9a77756e4ba56b1a39 to your computer and use it in GitHub Desktop.
map function for the withSourceCases view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(doc) { | |
if(doc.SourceCase !== 'undefined'){ | |
emit(doc._id, { | |
lastName: doc.Surname, | |
otherNames: doc.OtherNames, | |
sourceCase: doc.SourceCase, | |
sourceCaseId: doc.sourcerCaseId | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment