-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major(graphcache): remove warning and lookup fields by name rather th…
…an alias (#2616) * remove warning and lookup fields by name rather than alias * remove test * Add execution of recursive field value functions * compose into func * types 😅 * Update optimistic mutation test * Update docs and changeset Co-authored-by: Phil Pluckthun <[email protected]>
- Loading branch information
1 parent
9a69d53
commit c6244da
Showing
6 changed files
with
89 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@urql/exchange-graphcache': patch | ||
--- | ||
|
||
Graphcache's `optimistic` option now accepts optimistic mutation resolvers that return fields by | ||
name rather than alias. Previously, depending on which mutation was run, the optimistic resolvers | ||
would read your optimistic data by field alias (i.e. "alias" for `alias: id` rather than "id"). | ||
Instead, optimistic updates now correctly use field names and allow you to also pass resolvers as | ||
values on your optimistic config. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters