-
Notifications
You must be signed in to change notification settings - Fork 465
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
cache.resolveFieldByKey
is deprected
#42
Comments
cache.resolveFieldByKey
is Deprectedcache.resolveFieldByKey
is deprected
Hey Ctrl + click on resolveFieldByKey and it will take you to types.d.ts. In this types file on line 70 is the resolveFieldByKey type and above it there is a @deprected sign just remove it. And if you data doesn't still load wait till the next section where he fixes the mock data and iy will work after it. Hope this helps. |
@senjufy Thanks for the suggestion. You don't need to go as far as removing the @deprecated sign in |
Reopening for visibility to newcomers. |
I did use resolve but wanted to stick with resolveFieldByKey just for the sake of continuation of the tutorial |
The crust of it stays the same, and sometimes it is better to do it a bit differently. |
This worked for me for anyone that wants to copy/pasta
|
Deprecation notice of
resolveFieldByKey
- urql-graphql/urql#1219cache.resolveFieldByKey
is used in two places incursorPagination
lireddit/web/src/utils/createUrqlClient.ts
Line 46 in 2801126
lireddit/web/src/utils/createUrqlClient.ts
Line 53 in 2801126
The text was updated successfully, but these errors were encountered: