Skip to content

Commit

Permalink
Update relations.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Sep 9, 2019
1 parent cde07cd commit 015aafd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,14 @@ const updatedPost: Post = await photon.posts.update({
},
})
```

```ts
await photon.posts.update({
data: {
author: { disconnect: true }
},
where: {
id: "ck0c7jl4t0001jpcbfxft600e"
}
})
```

0 comments on commit 015aafd

Please sign in to comment.