I have one problem about datas. I want to delete n...
# prisma-whats-new
t
I have one problem about datas. I want to delete nodes that has null data from UI. But the problem is that is giving error as “Cannot return null for non-nullable type (line 7, column 36): id comment createdAt createdBy { id } post { id } updatedAt ^” so how can I remove items without know IDs? I cannot see or check them on data page because of this error.
n
@the_bluescreen it looks like there is a required relation defined. You can remove the required constraint for this relation and then remove the affected nodes
@the_bluescreen do you remember how your nodes ended up being in an inconsistent state? it looks like we are not handling a specific mutation correctly for required relations
t
I’m wondering that, too 🙂 I was just testing my app and I added some comments, that’s all. Btw I still can see the wrong datas on my app without any error but I’m getting error on graphcool UI.
@nilan, I can send the example code to you from PM if u want
n
yes @the_bluescreen that would be very helpful. Can you also include your project id?