anchor.diff:      case Res of
           {ok, ok}			-> {ok, Record};
           {ok, Id}			-> {ok, Record:set(id, unpack_id(Type, Id))};
  -        {failure, Reason}		-> {error, Reason};
  -        {connection_failure, Reason}	-> {error, Reason}
  +        {failure, Reason}		-> {error, Reason}
  +        
       end.
   
   execute_save_record(Conn, Record, Collection, DefinedId) ->
  
positive.code:     %    ?LOG("Condition", Condition),
      build_conditions1(Rest, lists:append(Condition, Acc)).
  
  -type operator_modules() :: 'not_matches'|matches|contains|not_contains|contains_all|not_contains_all|
  			    contains_any| contains_none|in|not_in.
  -spec(build_conditions2(string(),operator_modules(),string()) ->
  	     [
  	      {atom(), binary()}         |
  	      {string(), {regex, binary(),binary()}} |
  
negative.code:     mongo_regex_options_for_re_module_options(Rest, [$m|Acc]).
  
  % Boss and MongoDB have a different conventions to id attributes (id vs. '_id').
  -spec attr_value(atom()|string(), proplist(atom()|string(),string())) -> maybe(string()).
  
  attr_value(id, MongoDoc) ->
      proplists:get_value('_id', MongoDoc);
  attr_value(AttrName, MongoDoc) ->
  