StarWars introduction

Explore an advanced Viaduct application

Overview

This application implements a comprehensive GraphQL API for the Star Wars universe, demonstrating how Viaduct handles complex data relationships, advanced resolver patterns, and sophisticated schema design.

What You’ll Find

The StarWars demo showcases:

  • Node Resolvers: Direct object resolution patterns
  • Field Resolvers: Field-level data fetching strategies
  • Batch Resolution: Efficient bulk data loading techniques
  • Mutations: Modifying data through GraphQL mutations
  • Variables Provider: Dynamic variable injection and management
  • Backing Data: Using Kotlin objects as data sources in Viaduct
  • Global ID System: Viaduct’s approach to unique entity identification across your schema grts

Getting the StarWars Application

The StarWars application is available on GitHub at github.com/viaduct-graphql/starwars.

git clone https://github.com/viaduct-graphql/starwars.git
cd starwars

Running the Application

Follow the instructions in the repository’s README to build and run the application:

./gradlew test
./gradlew run

Documentation

The StarWars repository includes detailed documentation and examples that demonstrate Viaduct’s advanced features in practice. Follow the README in the repository for comprehensive instructions on how to explore and run the application, along with explanations of the various Viaduct features showcased.

Next Steps

After exploring the StarWars application, you’ll have a solid understanding of how to build production-ready GraphQL applications with Viaduct.

Further Resources: