All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.nadel.enginekt.transform.query.NadelQueryTransformerJavaCompat.kt Maven / Gradle / Ivy

Go to download

Nadel is a Java library that combines multiple GrahpQL services together into one API.

The newest version!
package graphql.nadel.enginekt.transform.query

import graphql.normalized.ExecutableNormalizedField
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.future.future
import java.util.concurrent.CompletableFuture

class NadelQueryTransformerJavaCompat(
    private val queryTransformer: NadelQueryTransformer,
    private val coroutineScope: CoroutineScope,
) {
    fun transform(
        fields: List,
    ): CompletableFuture> {
        return coroutineScope.future {
            queryTransformer.transform(fields)
        }
    }

    fun transform(
        field: ExecutableNormalizedField,
    ): CompletableFuture> {
        return coroutineScope.future {
            queryTransformer.transform(field)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy