-
Notifications
You must be signed in to change notification settings - Fork 100
how to query local state by Id #326
Comments
@peggyrayzis @stubailo @jbaxleyiii I wish I could help you guys write docs. Is there a way I can directly interact with the apollo team in order to help write docs on Apollo? |
Very surprising that a cache redirect didn't work - that's what I would have suggested! I don't work at Apollo as of 3 months ago, but I can help you get docs PRs merged in! |
Does this work if you try |
@jsslai it's just a uuid v4. from the in theory this should "just work" with a cache redirect, but... it doesn't maybe due to something not being setup in apollo-link-state "yet" I'm using the alpha release @peggyrayzis talked about at GraphQL Summit. |
Any news on this? I also feel a need for something like
But I don't really know how to do it. Is there any complex example available for some complex local state with queries with parameters. I only saw local-link-state mutations with parameteres, not queries... |
For something so basic, information on how to do this is surprisingly hard to come by. I believe this is what you're looking for:
|
@tkambler thanks for the solution, but it doesn't solve the case where you call getTodo without all the fields in the fragment it should be deferred to the caller I'd assume. |
Did you ever get the solution you were looking for, @lifeiscontent? |
@darrylyoung no unfortunately not |
I'd like to know what's the proper way to query a collection with apollo-link-state
e.g.
if I have a list of todos which initialize to an empty array, and I write a query as follows:
I tried using a cache redirect, but that didn't work.
The text was updated successfully, but these errors were encountered: