GraphQL-Blueprint icon indicating copy to clipboard operation
GraphQL-Blueprint copied to clipboard

Bug: Adding Relation Field in MongoDB database

Open Seanathon opened this issue 4 years ago • 2 comments

Adding a relation field to a Mongo database gives the error:

Uncaught TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))

at schemaReducer.js:337

Seanathon avatar Jul 12 '21 06:07 Seanathon

image

Was able to replicate

Seanathon avatar Jul 14 '21 20:07 Seanathon

I believe it happens when you reference the same field twice as a relational field.

I re-encountered that relational field bug. I believe the app breaks once you try to assign a field to another that already has a relationship flagged on it. The app breaks because local storage updates not realizing that an error has been logged. Onlyway to repoen the app is to clear local storage.

Seanathon avatar Jul 14 '21 20:07 Seanathon