graphql.nadel.engine.blueprint.hydration.NadelHydrationWhenCondition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nadel Show documentation
Show all versions of nadel Show documentation
Nadel is a Java library that combines multiple GrahpQL services together into one API.
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