Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1020 Bytes

README.md

File metadata and controls

49 lines (38 loc) · 1020 Bytes

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 }
    }
  }
}