Skip to content

Commit

Permalink
Merge pull request #507 from Bill-Park/fix/docs-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe authored Oct 20, 2024
2 parents ab9fc08 + a838c02 commit f23865e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/postgrest/mutations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const { trigger: insert } = useInsertMutation(
);
```

the select statement of your query will be expanded to include `has_golden_ticket`, because this is what the query above filters on. The mutation function will still return `name` only, but the full object is passed internally when updating the cache. This is the default behauvior to ensure that instant cache updates always work. You can opt-out for a mutation by passing `disableAutoQuery: true`.
the select statement of your query will be expanded to include `has_golden_ticket`, because this is what the query above filters on. The mutation function will still return `name` only, but the full object is passed internally when updating the cache. This is the default behavior to ensure that instant cache updates always work. You can opt-out for a mutation by passing `disableAutoQuery: true`.

If you need to revalidate additional cache items that are not automatically inferred, e.g. relations of the updated table, you can set `revalidateTables` and `revalidateRelations` on any mutation:

Expand Down

0 comments on commit f23865e

Please sign in to comment.