Replies: 3 comments
-
Important note: This refers to Ok. I put my non existent apollo-client-internals knowledge to the test and stumbled over this:
This function returns null instead of the expected The
The
The function expects Why Maybe a incompatibility cause I use the unsupported apollo-client version 3 (although I have the same behavior as with apollo-client 2.6.1)? |
Beta Was this translation helpful? Give feedback.
-
Local state resolver was deprecated since 3.x, it's better to use https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies. As I know vue-apollo is still not supporting 3.x version. |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for your reply!
That's true,but they still work and "deprecation and removal is still a ways off" (source). Plus, I have the same behavior with apollo-client 2.6.1 (args field is null)... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement local resolvers with
"apollo-client": "^2.6.10"
and"vue-apollo": "^3.0.4"
.Problem: Local resolver don't get
args
object (is always null) (in this caseargs.id
is expected to be present).The other parameters
parent
,context
,info
are all providedHow I try it:
Putting it together:
request the information:
Any idea what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions