Search code examples
jsonbreeze

breeze - error Converting circular structure to JSON at Object.stringify (native) when altering sql view called by breeze


Here is my error: Converting circular structure to JSON at Object.stringify (native)

I see clearly what is causing it: When I change the view that Breeze is calling. I change the view to join to a linked database and that's fine, but as soon as I call a field from the linked database, it gives this error in Visual Studio.

Can someone give a workaround or suggestion?

My breeze looks like this:

function BreezeFunction() {
    return breeze.EntityQuery
         .from("myview")
         .using(manager)
         .execute();
};

Solution

  • ng-repeat needs to have unique value. if i would change my entity framework mapping to a different key that's not unique, that would also fix this, but then i end up with different logic issues. I could also fix it by adding track by $index to the ng-repeat, but that also doesn't capture the data correctly and ultimately causes logic issues for me. In short, angularjs is correct to demand uniqueness for ng-repeat.