MortyComposeKMM icon indicating copy to clipboard operation
MortyComposeKMM copied to clipboard

[question] Domain objects based on GraphQL types

Open RafaO opened this issue 3 years ago • 0 comments

Hi! First of all, thank you for this repo. I am exploring KMM + GraphQL and this was really helpful and inspirational.

Now the question: Do you think that having repositories and UI layer relying on GraphQL types instead of regular Kotlin data classes could have limitations at some point? There is always the possibility of writing Kotlin extensions if you need anything extra, but for annotations like @Serializable, it could be an overhead.

What's your opinion? If that is the case, I'm happy to work on a PR to showcase the domain classes and how I think the mapping can work between them.

Thank you!

RafaO avatar Mar 07 '22 21:03 RafaO