Filip Wiesner
05/24/2022, 11:03 AMfeature/home/GetHome.graphql
and shared/CategoryFragment.graphql
. These files are each in it's own service
so that I can specify a package name to the generated files. Now I want to access CategoryFragment
from GetHome
file but it errors out with `Cannot find fragment `Category``.
Or maybe different question with the same outcome. Can I specify the package name of generated file more granularly so that the package names of different queries, mutations and fragments more resemble my defined project package structure?mbonnin
05/24/2022, 11:07 AMpackageNamesFromFilePaths()
apollo {
packageNamesFromFilePaths()
}
Filip Wiesner
05/24/2022, 11:08 AMmbonnin
05/24/2022, 11:08 AMfeature/home/GetHome.graphql => feature.home.GetHome
shared/CategoryFragment.graphql => shared.CategoryFragment
apollo {
packageNamesFromFilePaths("com.example")
}
Filip Wiesner
05/24/2022, 11:17 AMGradle plugin configuration
chapter in the documentation 🤔3.0.0-beta
on some other project but it's completely different story now. And it got a rebrand from Android to Kotlin if I remember correctly.mbonnin
05/24/2022, 1:12 PMMaybe this should be mentioned inhttps://github.com/apollographql/apollo-kotlin/pull/4135chapter in the documentationGradle plugin configuration
Also, really good job with the library! 👏 I remember usingThanks 😊on some other project but it's completely different story now.3.0.0-beta
Filip Wiesner
05/24/2022, 1:21 PMMaybe this should be mentioned inI meant the official Apollo docs. Or is it planned and this is just a first step?chapter in the documentationGradle plugin configuration
mbonnin
05/24/2022, 1:47 PMFilip Wiesner
05/24/2022, 1:47 PMmbonnin
05/24/2022, 1:47 PMapollo {}
block with some comments, I've seen other projects do that, it reads quite wellFilip Wiesner
05/24/2022, 1:49 PMmbonnin
05/24/2022, 1:50 PMFilip Wiesner
05/24/2022, 1:51 PMmbonnin
05/24/2022, 1:58 PMService
class an option for you?Filip Wiesner
05/24/2022, 2:04 PMService
and tried a few options. I don't know why I didn't find the packageNamesFromFilePaths
. There is a lot of stuff so I might've just scrolled past it 😕mbonnin
05/24/2022, 2:05 PMFilip Wiesner
05/24/2022, 2:06 PMmbonnin
05/24/2022, 2:11 PMFilip Wiesner
05/24/2022, 2:12 PMmbonnin
05/24/2022, 2:15 PM