0

The service i want to work with exposes 2 graphql api's that have overlapping types.

By which way it is possible to share as much fragments as possible?

After getting the schema.graphqls files via introspect and saving it to their source Folder i tried generating the files (query, mutation, fragments) resulting only value types getting generated.

apollo {
    fun Service.configure() {
        includes.add("com/example/shared")
    }

    service("api1") {
        configure()

        packageName.set("com.example")
        sourceFolder.set("com/example/api1")
    }
    service("api2") {
        configure()

        packageName.set("com.example.api2")
        sourceFolder.set("com/example/api2")
    }
}

0 Answers0