jvmMain.operations.RaptorGraphOperation.kt Maven / Gradle / Ivy
The newest version!
package io.fluidsonic.raptor
import io.fluidsonic.raptor.graphql.internal.*
import io.fluidsonic.stdlib.*
import kotlin.reflect.*
public sealed class RaptorGraphOperation {
internal abstract val defaultNameSuffixToRemove: String
internal abstract val type: RaptorGraphOperationType
public abstract val definition: RaptorGraphDefinition // TODO fun graphDefinition() like the others?
public abstract suspend fun RaptorGraphScope.execute(input: Input): Output
internal fun defaultName() =
this::class.simpleName
?.removeSuffix(defaultNameSuffixToRemove)
?.replaceFirstChar { it.lowercase() }
public companion object
}
public suspend fun