urql-graphql / urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
https://urql.dev/goto/docs
MIT License
8.6k stars 448 forks source link

feat(graphcache): Allow cache.resolve to return undefined for uncached fields #3333

Closed kitten closed 1 year ago

kitten commented 1 year ago

Summary

This updates cache.resolve to return undefined for uncached fields.

This has two reasons:

This isn't considered a breaking change since it shouldn't alter prior behaviour significantly:

Set of changes