idProp
Specifies the property that uniquely identifies an instance.
Deprecated 0.5.3
Instead of specifying idProp users should set an id property on the algebra included in the connection configuration options.
String
The name of the property that uniquely identifies an instance. Defaults to "id"
.
Use
var todoConnect = connect([
require("can-connect/data/url/url")
],{
idProp: "_id"
});
todoConnect.id({_id: 5}) // -> 5