Hi guys, super simple but annoying issue. Trying t...
# orm-help
b
Hi guys, super simple but annoying issue. Trying to update a User and set a
reportsTo
field to null/no relation where
reportsTo
is a relation to another User. Prisma Admin shows a relation to a user, however I always get this contradictory response... Any ideas? Documentation is little to none on disconnects
h
Can you share your datamodel?
b
Sure thing
Any ideas?
h
Looks like you have already disconnected the node. We will throw this error if node is already disconnected from the relation. I think you are seeing a cache value in Prisma admin, try clearing your localstorage
b
I thought the same, but to no avail
This isn't specific to Prisma Admin though, I get the same message using Prisma Admin, the playground and the mutation directly in-app
h
Try querying the data once using the playground to confirm if the node is connected or not.
b
There's definitely still a connection
Is it significant that this is a relation to the same type? User relating to another user
It's strange that I can connect a User to a User, but cannot disconnect it... Reproducible every time by simply connecting then trying to disconnect
h
Which version of Prisma server you are using?
b
1.32.0-beta
h
I think we did some bug fixes, can you upgrade to the latest version
👍 1