Reputation: 201
I've got this object:
CB.CloudObject {document: Object, $$hashKey: "object:23"}
document: Object
ACL: CB.ACL
_id: "tBaA9LXZ"
_tableName: "Product"
_type: "custom"
_version: 2
category: Object
title: "Nombre"
user: CB.CloudUser
When I try to delete it, it gives me this error:
TypeError: Converting circular structure to JSON
Is this due to user Relation?
Thanks!
Upvotes: 2
Views: 75
Reputation: 201
Solved!
A part from CloudUser relation (which is not the problem) I was setting a column named category that was a CloudObject, but I was not setting it as Relation, I was seeting it as object.
Changing it by a Relation solve the problem.
Upvotes: 2
Reputation: 2054
I think that's due to circular relations. Do you have something like A -> B and B -> A. In this case, Can you remove relational objects and try again.
Upvotes: 0