Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

GraphQL: Java client libraries

 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see that you're discussing Apollo in-depth as a client library, and are linking to a long list of client libraries in various languages. For a micro-service architecture one might have Java clients, not just browser or app. Can your recommend a particular Java client library or two that stand out from the crowd?
 
Author
Posts: 8
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't have the right experience here but it does not look like there are many options when it comes to a GraphQL client for Java

There are clients for Android/Kotlin though. Apollo client seems to have some options: https://www.apollographql.com/docs/android/essentials/get-started-java/

I also found the DGS framework which seems to have a Java GraphQL Client: https://netflix.github.io/dgs/advanced/java-client/

 
Ulf Dittmer
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks! The Apollo library seems to require a fixed query at compile time (except for parameters), which doesn't allow for much flexibility. But the Netflix library supports creating queries dynamically at runtime - which is the kind of flexibility that I think one wants when going to the effort of implementing GraphQL.
 
reply
    Bookmark Topic Watch Topic
  • New Topic