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

graphql.nadel.engine.blueprint.hydration.NadelHydrationWhenCondition.kt Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2024-12-10T04-34-06-f2ee9344
Show newest version
package graphql.nadel.engine.blueprint.hydration

import graphql.nadel.engine.transform.query.NadelQueryPath

sealed class NadelHydrationWhenCondition {
    abstract fun evaluate(resultId: String): Boolean

    data class ResultEquals(
        val fieldPath: NadelQueryPath,
        val value: Any,
    ) : NadelHydrationWhenCondition() {
        override fun evaluate(resultId: String): Boolean {
            TODO("Not yet implemented")
        }
    }

    data class StringResultMatches(
        val fieldPath: NadelQueryPath,
        val regex: Regex,
    ) : NadelHydrationWhenCondition() {
        override fun evaluate(resultId: String): Boolean {
            TODO("Not yet implemented")
        }
    }

    data class StringResultStartsWith(
        val fieldPath: NadelQueryPath,
        val prefix: String,
    ) : NadelHydrationWhenCondition() {
        override fun evaluate(resultId: String): Boolean {
            TODO("Not yet implemented")
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy