Whats the standard way to query a graphql API with...
# spring
e
Whats the standard way to query a graphql API within a kotlin spring boot application. What libraries are there (if any)?
d
unsure whether there is a "standard" but there are a number of libraries available
not listed above -> Netflix DGS also provides a client
*disclaimer: I am one of the maintainers of
graphql-kotlin
looks like I need to update the docs on the graphql.org as we simplified the config :)
e
Thanks @Dariusz Kuc. One of the teams in my company is using DGS (they are who we need to query) but I didnt check to see if it had a client.
d
You can use any graphql client to query it
e
Yeah I know, did a quick comparison of DGS vs gql-kotlin apis and I like the latter 👍🏼 (similar to apollo too)
👍 1
d
Btw there are #apollo-android and #graphql-kotlin channels where you can post lib specific questions
Apollo is probably the most popular client with some advanced features (like caching) built in
☝️ 1
In grapqhl-kotlin we went with thin wrappers on top of existing clients (like Spring Webclient and Ktor HttpClient) where you can configure clients directly (eg add whatever interceptors etc)