Is it possible to serialize or make Apollo Mutatio...
# apollo-kotlin
l
Is it possible to serialize or make Apollo Mutations or Input objects serializable? I would like to save the operations to disk and send them later.
b
It may be possible to mark them as
kotlinx.serialization.Serializable
with a compiler plugin?
l
okay, I managed to do that after solving a few issues along the way 😄
🎉 1
m
FWIW, input objects have a matching
_InputAdapter
that you can use to serialize to JSON.
But the mutation classes themselves do not. That could potentially be something interesting to add. Feel free to open an issue to keep track of this @Lukáš Kúšik
l
thanks for the reply, I have opened an issue https://github.com/apollographql/apollo-kotlin/issues/6625, but it is not pressing anymore as I have the compiler plugin.
❤️ 1