Package com. apurebase. kgraphql. schema. model
Types
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>
Content copied to clipboard
DataLoader
Link copied to clipboard
Definition
Link copied to clipboard
Deprecation
Link copied to clipboard
Depreciable
Link copied to clipboard
interface Depreciable
Content copied to clipboard
DescribedDef
Link copied to clipboard
interface DescribedDef
Content copied to clipboard
EnumValueDef
Link copied to clipboard
class EnumValueDef<T : Enum<T>>(value: T, description: String?, isDeprecated: Boolean, deprecationReason: String?) : DescribedDef, Depreciable
Content copied to clipboard
FunctionWrapper
Link copied to clipboard
InputValueDef
Link copied to clipboard
class InputValueDef<T : Any>(kClass: KClass<T>, name: String, defaultValue: T?, isDeprecated: Boolean, description: String?, deprecationReason: String?, kType: KType?) : DescribedDef, Depreciable
Content copied to clipboard
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<*>>)
Content copied to clipboard
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
Content copied to clipboard
OperationDef
Link copied to clipboard
interface OperationDef<T> : FunctionWrapper<T> , Depreciable, DescribedDef
Content copied to clipboard
PropertyDef
Link copied to clipboard
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
Content copied to clipboard
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<*>>)
Content copied to clipboard
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
Content copied to clipboard
Transformation
Link copied to clipboard
data class Transformation<T : Any, R>(kProperty: KProperty1<T, R>, transformation: FunctionWrapper<R>) : FunctionWrapper<R>
Content copied to clipboard