Skip to content

nicholashagen/micronaut-graphql-movie-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Movie Service using Micronaut and GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published