Quick question if anyone can help me I have a mod...
# prisma-whats-new
d
Quick question if anyone can help me I have a model referencing another model of the same type, declared like this:
Copy code
type Plan @model {

...
previousPlan: Plan @relation(name: "PreviousPlan")
}
When I try to run a create mutation adding previousPlanId it says I'm trying to reference a node that doesn't exist, even though it does. Is that relation right? Not sure what to do when it's a one-to-one relation of the same type.
Copy code
"message": "You are referencing a node that does not exist. Please check your mutation to make sure you are only creating edges between existing nodes. Id if available: cjeeupwo2j3k30195shnsex1h",
      "requestId": "eu-west-1:simple:cjeev4hwtl1g50115l8rdpa3d"