aerogear / offix-android

Apollo GraphQL offline extensions for Android Platform
https://android.offix.dev
Apache License 2.0
37 stars 16 forks source link

Add support for database in library. #159

Open Lavanyagaur22 opened 5 years ago

Lavanyagaur22 commented 5 years ago

Feature Request

To support offline mutations even when the app is closed, we need to persist the mutation requests in the database.

This link can help you in understanding the apollo interceptor which we have used in intercepting the mutation requests: https://github.com/apollographql/apollo-android/blob/master/apollo-runtime/src/main/java/com/apollographql/apollo/interceptor/ApolloInterceptor.java#L114

nsalazar0429 commented 5 years ago

This issue sounds challenging. I would like to try it

harshithdwivedi commented 5 years ago

Sounds great! @cfsnsalazar, keep us posted if you manage to figure out an effective way of serializing the request object that's present in the interceptor.

We need to store it to the db :)

nsalazar0429 commented 5 years ago

Sorry, I have not been able to work on this issue