apollo-android

Duplicate object types in Apollo GraphQL for Android

情到浓时终转凉″ 提交于 2021-02-18 21:58:50
问题 On my project GraphQL schema the object AllowedPeriod (it's just two fields startsAt/endsAt) can arrive inside different objects of the graph. When generating queries, apollo is creating a new type for every <parent_object>.AllowedPeriod For example, in the GetDevicesQuery , the AllowedPeriod can be inside devices , actions or group , hence generating the following classes. GetDevicesQuery.AllowedPeriod GetDevicesQuery.AllowedPeriod1 GetDevicesQuery.AllowedPeriod2 Is there a way to tell

Apollo Android Client - Cannot access generated classes on classpath

跟風遠走 提交于 2020-01-14 12:49:06
问题 I've generated the Apollo classes successfully and can see them in the build directory, however they're not available on the classpath. Strangely the Enum that is generated is available but the classes themselves aren't. Running the sample project provided on Apollo's Github does work but I cant see the difference between the configurations. mcve below. https://github.com/michaeljq/graphQlMCVE 回答1: Right now, you have src/main/graphql/ containing GraphQL documents. That means that your Java

Can apollo-android be used as a java client?

痴心易碎 提交于 2019-12-19 09:36:25
问题 I'm working on a spring boot app that needs to talk to the Github GraphQl API. Can apollo-android be used for this purpose? Since all of it's scarce documentation available as well as the sample project is written with android in mind, I'm not sure. 回答1: maintainer here. You can absolutely use Apollo-Android in a java only project. There is only 1 module/artifact that is android specific which is not required. The android artifact simply brings in android specific threading models. Come join

Can apollo-android be used as a java client?

若如初见. 提交于 2019-12-19 09:36:11
问题 I'm working on a spring boot app that needs to talk to the Github GraphQl API. Can apollo-android be used for this purpose? Since all of it's scarce documentation available as well as the sample project is written with android in mind, I'm not sure. 回答1: maintainer here. You can absolutely use Apollo-Android in a java only project. There is only 1 module/artifact that is android specific which is not required. The android artifact simply brings in android specific threading models. Come join