Cannot delete CloudObject in CloudBoost

75 views Asked by At

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!

2

There are 2 answers

0
Gabriel Anglada On BEST ANSWER

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.

4
Nawaz Dhandala On

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.