Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2998,11 +2998,14 @@ A nested `disconnect` query breaks the connection between a parent record and a
#### Remarks

- `disconnect` is only available if the relation is optional.
- Prisma Client throws an exception if the provided ID or unique identifier is not connected:

```
The records for relation `PostToUser` between the `User` and `Post` models are not connected.
```
- If the relationship you are attempting to disconnect does not exist:

- ([In 2.21.0 and later](https://github.com/prisma/prisma/releases/tag/2.21.0)), the operation does nothing
- (Before 2.21.0) Prisma Client throws an exception if the provided ID or unique identifier is not connected:

```
The records for relation `PostToUser` between the `User` and `Post` models are not connected.
```

#### Examples

Expand Down