Comments (2)
These are both use cases we definitely want to support. Instead of just updating the model structs for a particular query result however, I think we want changes to be applied to the normalized cache, so we can keep consistency between queries and not overwrite local changes when you reload from cache. For optimistic updates, we would also want to roll them back automatically when the real result comes back.
The precise mechanism is something we need to work on, but it could involve some kind of mutable view (maybe a functional lens) on a model struct that acts as an interface to the store. I don't think we want model structs themselves to be mutable however, because there is great value in keeping to immutable models and one way dataflow.
from apollo-tooling.
Closing this, because the generated Swift structs are now mutable in Apollo iOS 0.6.0 (currently in beta).
from apollo-tooling.
Related Issues (20)
- codegen breaks with latest `core-js`
- apollo-language-server: Include graphql as a peer dependency
- Code Generation In Mono Repo With Multiple Graphql APIs
- 2.34.0: Cannot find module 'graphql/validation/rules/UniqueTypeNames' when generating code from a graph introspection
- Cannot install Apollo on Node 18 HOT 4
- client:codegen fails on windows with Error: No operations or fragments found to generate code for
- [Question]:
- How can I deliberately fail a mutation for testing purposes?
- [apollo-language-server] - unpin @apollo/federation HOT 6
- Bump vulnerable version of moment
- apollo client:check doen't find GraphQl Queries in gql('..') from graphql-codegen HOT 2
- Apollo GraphQL VSCode extension: Prevent GraphQL Validation
- TS + Vite + Vue: ❌ Service stats could not be loaded
- Make apollo.config.js support `esm` project `type:module`
- Setting up Intellisense for with localSchemaFile is broken HOT 1
- Missing `includeDeprecatedInputValues` for `apollo client:download-schema`
- how to use apollo.config.js with Vite React app HOT 1
- Cover auth failure case before `It looks like there are 0 files associated with this Apollo Project.`
- Server not Start
- During codegen of an input type with a default value, allow for null to be sent from client, rather than defaulting in the generated class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-tooling.