kgraphql / com.apurebase.kgraphql.schema.model

Package com.apurebase.kgraphql.schema.model

Types

Add

class Add<K, V> : DataActor

BaseOperationDef

abstract class BaseOperationDef<T, R> : Definition, OperationDef<R>, FunctionWrapper<R>

DataActor

sealed class DataActor

DataLoader

class DataLoader<K, V>

Definition

Unstructured component of KGraphQL schema, intermediate data structure between DSL and SchemaNode

abstract class Definition

Deprecation

data class Deprecation<T>

Depreciable

interface Depreciable

DescribedDef

interface DescribedDef

EnumValueDef

class EnumValueDef<T : Enum<T>> : DescribedDef, Depreciable

FunctionWrapper

FunctionWrapper is common interface for classes storing functions registered in schema by server code. Only up to 9 arguments are supported, because kotlin-reflect doesn't support invoking lambdas, local and anonymous functions yet, making implementation severely limited.

interface FunctionWrapper<T> : Publisher

Increment

class Increment : DataActor

InputValueDef

class InputValueDef<T : Any> : DescribedDef, Depreciable

MutableSchemaDefinition

Intermediate, mutable data structure used to prepare SchemaDefinition Performs basic validation (names duplication etc.) when methods for adding schema components are invoked

data class MutableSchemaDefinition

MutationDef

class MutationDef<R> : BaseOperationDef<Nothing, R>, DescribedDef

OperationDef

interface OperationDef<T> : FunctionWrapper<T>, Depreciable, DescribedDef

PropertyDef

interface PropertyDef<T> : Depreciable, DescribedDef

QueryDef

class QueryDef<R> : BaseOperationDef<Nothing, R>, DescribedDef

SchemaDefinition

SchemaDefinition represents unstructured schema components

data class SchemaDefinition

SubscriptionDef

class SubscriptionDef<R> : BaseOperationDef<Nothing, R>, DescribedDef

Transformation

data class Transformation<T : Any, R> : FunctionWrapper<R>

TypeDef

interface TypeDef

Extensions for External Classes

kotlinx.coroutines.CoroutineScope

Functions

log

fun log(str: String): Unit