Package com.apurebase.kgraphql.schema.model

Types

Add
Link copied to clipboard
class Add<K, V>(key: K, result: CompletableDeferred<V?>) : DataActor
BaseOperationDef
Link copied to clipboard
abstract class BaseOperationDef<T, R>(name: String, operationWrapper: FunctionWrapper<R>, inputValues: List<InputValueDef<*>>, accessRule: (T?, Context) -> Exception??, explicitReturnType: KType?) : Definition, OperationDef<R> , FunctionWrapper<R>
DataActor
Link copied to clipboard
sealed class DataActor
DataLoader
Link copied to clipboard
class DataLoader<K, V>(batchLoader: suspend (List<K>) -> Map<K, V?>)
Definition
Link copied to clipboard
abstract class Definition(name: String)
Unstructured component of KGraphQL schema, intermediate data structure between DSL and SchemaNode
Deprecation
Link copied to clipboard
data class Deprecation<T>(target: T, reason: String?)
Depreciable
Link copied to clipboard
interface Depreciable
DescribedDef
Link copied to clipboard
interface DescribedDef
EnumValueDef
Link copied to clipboard
class EnumValueDef<T : Enum<T>>(value: T, description: String?, isDeprecated: Boolean, deprecationReason: String?) : DescribedDef, Depreciable
FunctionWrapper
Link copied to clipboard
interface FunctionWrapper<T> : Publisher
FunctionWrapper is common interface for classes storing functions registered in schema by server code.
Increment
Link copied to clipboard
class Increment(count: Int) : DataActor
InputValueDef
Link copied to clipboard
class InputValueDef<T : Any>(kClass: KClass<T>, name: String, defaultValue: T?, isDeprecated: Boolean, description: String?, deprecationReason: String?) : DescribedDef, Depreciable
MutableSchemaDefinition
Link copied to clipboard
data class MutableSchemaDefinition(objects: ArrayList<TypeDef.Object<*>>, queries: ArrayList<QueryDef<*>>, scalars: ArrayList<TypeDef.Scalar<*>>, mutations: ArrayList<MutationDef<*>>, subscriptions: ArrayList<SubscriptionDef<*>>, enums: ArrayList<TypeDef.Enumeration<*>>, unions: ArrayList<TypeDef.Union>, directives: ArrayList<Directive.Partial>, inputObjects: ArrayList<TypeDef.Input<*>>)
Intermediate, mutable data structure used to prepare SchemaDefinition Performs basic validation (names duplication etc.
MutationDef
Link copied to clipboard
class MutationDef<R>(name: String, resolver: FunctionWrapper<R>, description: String?, isDeprecated: Boolean, deprecationReason: String?, accessRule: (Nothing?, Context) -> Exception??, inputValues: List<InputValueDef<*>>, explicitReturnType: KType?) : BaseOperationDef<Nothing, R> , DescribedDef
OperationDef
Link copied to clipboard
interface OperationDef<T> : FunctionWrapper<T> , Depreciable, DescribedDef
PropertyDef
Link copied to clipboard
interface PropertyDef<T> : Depreciable, DescribedDef
QueryDef
Link copied to clipboard
class QueryDef<R>(name: String, resolver: FunctionWrapper<R>, description: String?, isDeprecated: Boolean, deprecationReason: String?, accessRule: (Nothing?, Context) -> Exception??, inputValues: List<InputValueDef<*>>, explicitReturnType: KType?) : BaseOperationDef<Nothing, R> , DescribedDef
SchemaDefinition
Link copied to clipboard
data class SchemaDefinition(objects: List<TypeDef.Object<*>>, queries: List<QueryDef<*>>, scalars: List<TypeDef.Scalar<*>>, mutations: List<MutationDef<*>>, subscriptions: List<SubscriptionDef<*>>, enums: List<TypeDef.Enumeration<*>>, unions: List<TypeDef.Union>, directives: List<Directive.Partial>, inputObjects: List<TypeDef.Input<*>>)
SchemaDefinition represents unstructured schema componentsSchemaDefinition does not contain all nodes in schema, only these, which have been directly declared via SchemaBuilder.
SubscriptionDef
Link copied to clipboard
class SubscriptionDef<R>(name: String, resolver: FunctionWrapper<R>, description: String?, isDeprecated: Boolean, deprecationReason: String?, accessRule: (Nothing?, Context) -> Exception??, inputValues: List<InputValueDef<*>>, explicitReturnType: KType?) : BaseOperationDef<Nothing, R> , DescribedDef
Transformation
Link copied to clipboard
data class Transformation<T : Any, R>(kProperty: KProperty1<T, R>, transformation: FunctionWrapper<R>) : FunctionWrapper<R>
TypeDef
Link copied to clipboard
interface TypeDef

Functions

dataActor
Link copied to clipboard
@ObsoleteCoroutinesApi()
fun <K, V> CoroutineScope.dataActor(totalTimes: Int, batchLoader: suspend (List<K>) -> Map<K, V?>): SendChannel<DataActor>
log
Link copied to clipboard
fun log(str: String)