MinimongoError: can't set field named $$hashKey

I have this error (409) when I call a function on the client $meteor.call() to the server.
the full stacktrace is:

field named $$hashKey [409]
at Mongo.Collection._defineMutationMethods._.each.m.(anonymous function) (http://localhost:3000/packages/mongo.js?3cfe0c5981c197df33036a37574850f057e934a6:984:19)
at http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:4269:25
at _.extend.withValue (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:955:17)
at _.extend.apply (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:4260:54)
at _.each.Mongo.Collection.(anonymous function) [as update] (http://localhost:3000/packages/mongo.js?3cfe0c5981c197df33036a37574850f057e934a6:656:26)
at upsertObject (http://localhost:3000/packages/urigo_angular.js?f39a58528c9912d9069bc87495d9781c9d7c3fec:1036:22)
at Array.save (http://localhost:3000/packages/urigo_angular.js?f39a58528c9912d9069bc87495d9781c9d7c3fec:1064:25)
at Object.diffMethod.changedAt (http://localhost:3000/packages/urigo_angular.js?f39a58528c9912d9069bc87495d9781c9d7c3fec:1318:23)
at http://localhost:3000/packages/urigo_angular.js?f39a58528c9912d9069bc87495d9781c9d7c3fec:473:19
at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:164:22)

found the problem - added an angular-meteor object (which has weired keys) to the object from minimongo database.

1 Like