/apollo-kotlin-template-multi-modules-and-services

Sample: Apollo Kotlin 3 with multiple modules and services

Primary LanguageKotlin

Sample: Apollo Kotlin 3 with multiple modules and services

This is a minimalist sample of a project with several modules and services using Apollo Kotlin 3.

It contains 3 modules:

  graph TD;
      app-->graphqlSchema;
      app-->feature1;
      app-->feature2;
      feature1-->graphqlSchema;
      feature2-->graphqlSchema;
  • graphqlSchema
    • Contains the GraphQL schema for 2 services
    • Defines 1 query for each service
  • feature1
    • Depends on graphqlSchema
    • Defines 1 additional query for each service
  • feature2
    • Depends on graphqlSchema
    • Defines 1 additional query for each service
  • app
    • Depends on graphqlSchema, feature1 and feature2