cloudboost
cloudboost copied to clipboard
Duplicate CloudObjects in List
i added 2 same cloudObjects in list.
and after when i form normal Find Query, cloudObject is returning TWO same records in the LIST
Hey please can you provide more information about the issue screenshoots would be more helpful
Hey Ken,
This issue is about the list of relations. Let me give you an example :
var parent = new CB.CloudObject('Parent');
var child = new CB.CloudObject('Child');
parent.set('children',[child,child]);
parent.save().then(function(parent){
console.log(parent.get('children')); //here it gives you [child,child] which is correct. But same objects cannot be added twice in an array. It should ideally return [child]
});
Fixed