building an offline first application that doesn't require extensive custom updates #1058
-
We have a current application that is running via a GraphQL API and using mobx state tree on the frontend. Due to some issues around working with graphql linked to mobx state tree and many issues around circular types in typescript we've been looking at replacing our current implantation with something else, potentially urql. Our biggest concern is that with the number of various lists and interconnected models we have in our app using Basically we're looking for a way to have local storage with all known item types (ideally populated by mutation + query results) that we could then filter through to get lists on the fly. "show me all items with the type task that also have Anyways, we're still very new to urql so maybe we're missing something and/or there is another way to get where we're trying to go... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
The thing you are describing is quite automatic anyway, so if your
Then this task will be updated to have This could be for instance a task that is assigned to a user OR |
Beta Was this translation helpful? Give feedback.
The thing you are describing is quite automatic anyway, so if your
deleteTask
returns aTask:id
that is present in cache will make it automatically update, so let's sayTask:1
is in cache anddeleteTask
returns the following:Then this task will be updated to have
isDeleted: true
this could be due to it being present in cache due to a former query, ... When we can't find saidTask
due to it being anaddTask
, .. (create task) we'll need you to show us how it connects to your rootTypes.This could be for instance a task that is assigned to a user OR
Query.task(id: x)
returning said task.