Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.82 KB

readme.md

File metadata and controls

53 lines (37 loc) · 1.82 KB

Sample Kotlin Application

Simply write GraphQL queries and use them directly and type-safely from Koltin, no code gen steps, no data classes, no annotations.

Demonstrates the use of Manifold with Kotlin. In particular this application uses manifold-graphql to show how resource files can be packaged in a separate Java module for use with Kotlin. Use this application as a reference to set up Manifold with your own Kotlin applications.

See also Using Manifold with Kotlin.

IntelliJ IDEA and Android Studio

You can use the IDE to edit, build, and execute this project.

IDE features such as code completion, deterministic usage searching, refactoring, navigation, incremental compilation, etc. can be used directly with Manifold enabled types. Make GraphQL changes and type-safely use them from Kotlin without a compilation step in between. Jump from Kotlin directly to GraphQL. Find Kotlin usages directly from GraphQL. No code generation build steps. No data classes. No annotation processors. This is true schema-first development -- GraphQL is the single source of truth.

Run the com.example.server.MovieServer class to start the sample GraphQL server.

Run the com.example.client.MovieClient class to run a GraphQL client against the server.

Manifold plugin for IntelliJ IDEA

Install the Manifold plugin directly from IntelliJ:

SettingsPluginsMarketplace ➜ search: Manifold

Command Line

Build this project from the command line via:

gradlew clean build

Run the server:

gradlew runServer

Run the client:

gradlew runClient

Stop the server:

gradlew --stop