Skip to content

Commit

Permalink
release guide
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Feb 1, 2023
1 parent 48ad145 commit 3be7005
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions site/src/routes/guides/release-notes/+page.svx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,29 @@ need to pass a new config to your client:

</DeepDive>

### Mutation return value changed

Because of the change in Houdini's default error handling, mutations were brought
in line with query behavior and return the full query result with `data`, `errors`,
etc.

```diff:title=src/components/AddFriend.svelte
<script>
const mutation = graphql(`
mutation AddFriend {
addFriend {
...
}
}
`)

async function onClick() {
- const { addFriend } = await mutation.mutate()
+ const { data: { addFriend } } = await mutation.mutate()
}
</script>
```

### Grouped `apiUrl`, `schemaPollHeaders`, and `schemaPollInterval` together

In order to clarify the difference between the `apiUrl` config value and the
Expand Down

0 comments on commit 3be7005

Please sign in to comment.