
Facilitates GraphQL queries using a domain-specific language, sending requests via HTTP POST. Integrates with Ktor for engine support and provides easy setup and usage.
A simple GraphQL client for Kotlin Multiplatform
gqlclient uses a DSL to form GraphQL queries and sends them using HTTP POST requests.
To use gqlclient you will need gqlclient and an engine for Ktor
To add an engine see https://ktor.io/docs/http-client-engines.html
dependencies {
implementation("io.github.vincentvibe3:gqlclient:<version here>")
}val query = query{
field("hello"){
field("world")
}
}
val client = GQLClient()
val response = client.sendQuery<JsonObject, DefaultGQLError>("127.0.0.1", query)
println(response.data.toString())Find examples here
gqlclient is licensed under an MIT License
A simple GraphQL client for Kotlin Multiplatform
gqlclient uses a DSL to form GraphQL queries and sends them using HTTP POST requests.
To use gqlclient you will need gqlclient and an engine for Ktor
To add an engine see https://ktor.io/docs/http-client-engines.html
dependencies {
implementation("io.github.vincentvibe3:gqlclient:<version here>")
}val query = query{
field("hello"){
field("world")
}
}
val client = GQLClient()
val response = client.sendQuery<JsonObject, DefaultGQLError>("127.0.0.1", query)
println(response.data.toString())Find examples here
gqlclient is licensed under an MIT License