JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

Query Literals for Kotlin Language #451

Open SriwanKm opened 3 years ago

SriwanKm commented 3 years ago

I would like to add enhancement for parsing query literals in Kotlin Language.

File extension is ".kt" or ".kts" for scripts

val myQuery = """query someGraph{...}"""

SriwanKm commented 3 years ago

Noticed we can get most of the functionality by just injecting language or reference into the string (with JSGraphQL plugin) since it will then consider the string as a GraphQL file fragment, works with any language

vepanimas commented 2 years ago

Hi! I think about improving the support for GQL in the other languages, but it will take a huge amount of work and injections rework. It's on the roadmap.