Skip to content

Instantly share code, notes, and snippets.

@davidcoallier
Created March 6, 2010 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save davidcoallier/323927 to your computer and use it in GitHub Desktop.
Save davidcoallier/323927 to your computer and use it in GitHub Desktop.
fun({Doc}) ->
case {proplists:get_value(<<"id">>, Doc)} of
{undefined} ->
ok;
{Id} ->
Emit(Id, Doc);
_ ->
ok
end
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment