Skip to content

Instantly share code, notes, and snippets.

@janl
Forked from davidcoallier/doppler-1.erl
Created March 6, 2010 20:36
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 janl/323929 to your computer and use it in GitHub Desktop.
Save janl/323929 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