parseInstanceProp
The property to find the data that represents an instance item.
String
parseInstanceData uses this property's value to make an instance.
Use
Set parseInstanceData
if your response data does not directly contain the data you would like to pass to
[connection.hydrateInstance].
For example, if getData returns data like:
{
todo: {
id: 1,
name: "dishes"
}
}
Set parseInstanceProp
to "todo"
like:
connect([
require("can-connect/data/parse/parse"),
require("can-connect/data/url/url")
],{
url : "/todos",
parseInstanceProp: "todo"
});