Does anyone know of a way to get syntax highlighti...
# graphql
j
Does anyone know of a way to get syntax highlighting/autocomplete/query validation for GraphQL query strings in Intellij? It's possible for javascript via the JS GraphQL plugin: https://plugins.jetbrains.com/plugin/8097-js-graphql/reviews
I'd settle for being able to import the
*.graphql
files that the javascript plugin uses into my Kotlin code, not sure if that's possible.
m
Are you looking for autocomplete in
.graphql
files or in
.kt
files?
j
Autocomplete in
.kt
files would be ideal, if that's not possible I'm wondering if I can import
.graphql
files into
.kt
files, as the JS plugin I posted can do autocomplete in
.graphql
files.
m
You can copy/paste
graphql
strings in
.kt
files
I don't know if that would qualify as importing...
I develop my queries in
.graphql
files and use
apollo-android
to generate Kotlin models automatically
So there is some autocomplete in Kotlin files but it's on the generated models, not the query string