I am using Apollo GraphQL Kotlin client and codegen. But the fragment classes generated by it cannot be saved in instance state as they are not serializable. What is the smartest way to make this happen, ideally using codegen without writing any manual code as far as possible? Thanks
Apollo GraphQL Kotlin Codegen Fragment Serializable
22 Views Asked by Raj Chaudhary At
1
There are 1 best solutions below
Related Questions in APOLLO
- Error creating bean with name 'routerFunctionMapping' defined in class path resource
- Apollo GraphQL Kotlin Codegen Fragment Serializable
- Choosing Backend for Multilingual E-commerce with Nuxt 3, MongoDB, GraphQL
- Apollo call API which provides all of a type, reducing duplicate calls when resolving individuals
- Pagination does not work in Apollo React Native
- GraphQL query in React for Sorare data (running locally)
- Context is undefined in Apollo RESTDataSource
- Apollo query subscription doesn't have extensions part in Error
- React front end not reaching graphQL resolver
- Wrong data is given from Apollo cache to React because of missing ids
- How to handle multiple api endpoints for apollo iOS
- Apollo headers not found parsing in Node.js
- When sending data to the database an error occurs [ApolloError: VALIDATION_ERROR]
- Apollo is returning data wrong, but is correct in Network inspector
- Call one query and wait for it to finish before calling another one
Related Questions in APOLLO-CLIENT
- Error: Response not successful: Received status code 405
- App expo uses useQuery to connect to graphql server, it works in development and when generating apk it works on Android 7 but not on Android 11 or +
- Dealing with Null Values in GraphQL API Response
- Using Apollo client wrapper in Next.js 14 App router
- Upload file in GraphQL and apollo-server
- How to set variables to context.extensions object when execute query?
- React GraphQL mutation is not leaving the loading state
- Apollo GraphQL Kotlin Codegen Fragment Serializable
- GraphQL query in React for Sorare data (running locally)
- GraphQL apollo caching query that has no id
- Wrong data is given from Apollo cache to React because of missing ids
- Getting Bad Request from graphql call
- Call one query and wait for it to finish before calling another one
- Issue with passing "locale" variable in Apollo useQuery and Strapi v4
- Apollo client, merges objects when 'id' propery is empty
Related Questions in APOLLO-ANDROID
- android.system.ErrnoException: open failed: ENOENT (No such file or directory), the file exists in the path with the name
- apollo-android requests to express-graphql always result in http 400
- How to get HTTP status code in GraphQL apollo-android client
- Can't access Apollo classes in Kotlin Multiplatform project
- Are there any Java based Graphql client to invoke graphql server from java code?
- Downloading graphQL schema from server while building client project using gradle
- ApolloNetworkException sometime on Apollo Mutation on Android
- Android ApolloCall.CallBack onResponse not fetching data
- Apollo Android Client - Cannot access generated classes on classpath
- Getting "error: GraphQL schema file should contain a valid GraphQL introspection query result" after apollo schema:download
- Cannot build a query from generated Apollo class in Kotlin (.builder() is absent)
- fetching data from GraphQL server through apollo environment through its client
- Can apollo-android be used as a java client?
- How to incorporate Apollo-android in a project with many modules?
- Why Apollo-android is not generating custom types even after adding custom mapping in the gradle?
Related Questions in APOLLO-KOTLIN
- Kotlin flow doesn't appear to be collecting from Composable
- How to get the error body from an ApolloHttpException?
- Upload image to Graphql server using apollo kotlin
- Apollo GraphQL Kotlin Codegen Fragment Serializable
- Not able to add OkHttp client to Apollo Client (Apollo-kotin Version 3)
- Is it possible to change the default schema directory in Apollo Kotlin?
- Apollo-Kotlin: After creating schema.graphql android studio is showing Unsupported token `!` error
- How to catch exceptions from ApolloClient watch method?
- how to set expiration time for SqlNormalizedCacheFactory in apollo-kotlin client
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It is generally recommended to save only simple data in the instance state (e.g. IDs), the code can then reload the data from it. If you are using the Apollo (or a third-party) cache this shouldn't go to the network and be fast.
But if that is not practical for you, you could serialize to/from Json Strings and save that.
But these strings may be lengthy and overall using IDs is probably a better solution.