Closed TayfunCesur closed 5 years ago
I've just tried .Didn't worked :/
Found the solution! I was wrong. I put the my .graphql and schema.json under graphql folder. I was working and Android Studio was recognizing. But If you want to use with Dagger2, you must put them under the graphql/{yourpackagename}/.graphql file. Otherwise, dagger2 won't recognize them.
Thanks
confirm, rootPackageName.set("com.packagename")
in gradle file solved the problem
Hello everyone. I've been struggling with this issue for two days. It seems, Dagger2 not recognized Apollo's autogenerated model classes. Here is my ApiService, injects apollo client and makes query observable.
Error log
But if I use with my own Model class, like below, it works as expected.
My Query
But as you think, I don't want to create my own model. That is why I'm learning Graphql :)
Any ideas ?
Thanks