r.Rahul Kumar LohraANDROID PLATFORM ENGINEER
← All projects

Developer tools / Original project

GraphQL Formatter.

From a query in a Kotlin string to something you can actually read. A GraphQL formatting plugin for IntelliJ.

View source on GitHub ↗
KotlinIntelliJGraphQL

THE PROBLEM

What it’s for

GraphQL queries stored inside Kotlin variables can be difficult to read and edit.

THE APPROACH

How it works

Import a query from a named variable into an IntelliJ tool window, format and edit it, then replace the variable’s value.

Explore the repository for implementation details and setup instructions.

Actual GraphQL Formatter IntelliJ tool window
Screenshot from the project’s source repository. The illustration above is a visual summary.

Behind the build.

Developer tools

Intellij Plugin: Create Gql Formatter Plugin

Build an IntelliJ plugin to format GraphQL queries, from the UI to parsing and publishing.