pgutkowski / KGraphQL

Pure Kotlin GraphQL implementation
MIT License
286 stars 83 forks source link

[Idea] Support multi-platform targeting #11

Open tristancaron opened 6 years ago

tristancaron commented 6 years ago

Kotlin is now multi-platform (JVM/JavaScript/Native).

Currently the project can only target JVM. It would be nice to support the others platforms as well.

Do you you think it's relevant?

pgutkowski commented 6 years ago

That's nice idea, I love the fact that Kotlin is pushing for multiplatform. Most certainly it would take some work, because right now KGraphQL heavily depends on Jackson library for JSON streaming.

I still need some time to do my research, and find out what would be the best approach. Are you interested in contributing in this effort, or is this just an idea?

tristancaron commented 6 years ago

I was interested by contributing actually. I really love how we can use this library. I was thinking about using it in my company and suggest improvement if necessary.

Regarding the multi-platform, Jackson is not the only issue. Reflection is also. AFAIK, JavaScript reflection is not under development yet (https://discuss.kotlinlang.org/t/kotlin-js-full-reflection-api/4529/2). Maybe we can use kapt?

andylamax commented 5 years ago

I might be too late to the party, but you can replace the Jackson library with Kotlinx-Serialization and I can tell it's production ready. So, Time to go Multiplatform?