com.expediagroup.graphql.server.extensions.jsonReaderExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-kotlin-server Show documentation
Show all versions of graphql-kotlin-server Show documentation
Common code for running a GraphQL server in any HTTP server framework
The newest version!
package com.expediagroup.graphql.server.extensions
import com.alibaba.fastjson2.JSONReader
inline fun JSONReader.readAsArray(): List {
val collector = mutableListOf()
readArray(collector, T::class.java)
return collector
}
inline fun JSONReader.readAs(): T = read(T::class.java)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy