Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow update mutations to pass null for optional relations #1002

Merged
merged 1 commit into from Jan 17, 2024

Conversation

ramnivas
Copy link
Contributor

This makes it possible to reset an optional relation with an update mutation:

mutation resetEvent {
  updateNotification(id: 1, data: {title: "N1-updated", event: null}) {
    id
    event
  }
}

This makes it possible to reset an optional relation with an update mutation:
```graphql
mutation resetEvent {
  updateNotification(id: 1, data: {title: "N1-updated", event: null}) {
    id
    event
  }
}
```
@ramnivas ramnivas merged commit 19971f0 into main Jan 17, 2024
4 checks passed
@ramnivas ramnivas deleted the reset-relation branch January 17, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant