Skip to content

Instantly share code, notes, and snippets.

@sivsushruth
Last active March 12, 2016 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivsushruth/8333bb8d1267bd67887c to your computer and use it in GitHub Desktop.
Save sivsushruth/8333bb8d1267bd67887c to your computer and use it in GitHub Desktop.
fun({Doc}) ->
DocId = couch_util:get_value(<<"_id">>, Doc, null),
Emit(DocId, null)
end.
@ciaran
Copy link

ciaran commented Mar 12, 2016

fn {Doc} ->
  doc_id = :couch_util.get_value(<<"_id">>, doc, nil)
  Emit(doc_id, nil)
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment