/micronaut-graphql-movie-service

Movie Service using Micronaut and GraphQL

Primary LanguageJava

Movie Service

This repository demonstrates using the Micronaut framework to create a GraphQL implementation of a simple movie service. The backend is powered by a very simple JDBC H2 database.

Getting Started

Command Line

  • Run ./gradlew run

IDE Setup

  • Import the Gradle project into your IDE of choice (_note that your IDE must support annotation processing... see Micronaut IDE Setup for more information).

  • Run the com.znetdevelopment.movies.Application main class

Execute Query

query {
  movies {
    name
    category { name }
    duration
    description
    director {
      firstName
      lastName
      directedMovies {
        name
      }
    }
    actors {
      firstName
      lastName
      actedInMovies { name }
    }
  }
}