Skip to content

Need to remove $$hashKey property on objects to store in MongoDB #27

Description

AngularJS adds $$hashKey property on objects listed in a ng-repeat directive.
When we use $resource, $http or angular.toJson AngularJS removes this transient property but when we use Meteor insert this property is not removed and it failed on MongoDB insert with this error :
at _Mongo.insert (app/packages/mongo-livedata/mongo_driver.js:172:8)
Exception while invoking method '/annonces/insert' Error: key $$hashKey must not start with '$

The fix must be recursive on the object properties to insert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions