Properties
Gets the authorization context necessary to generate new Permissions to check for permissions Can either be set by setting the requiredPermission or can be provided under context key AuthorizationContext::class
Taken from graphql-kotlin https://github.com/ExpediaGroup/graphql-kotlin/blob/master/generator/graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/generator/internal/extensions/kClassExtensions.kt
Gets the permission which is required for all data fetching Can be provided under context key Permission::class
Functions
Taken from graphql-kotlin https://github.com/ExpediaGroup/graphql-kotlin/blob/master/generator/graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/generator/internal/extensions/kClassExtensions.kt
Finds a property by name
Taken from graphql-kotlin https://github.com/ExpediaGroup/graphql-kotlin/blob/master/generator/graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/generator/internal/extensions/kPropertyExtensions.kt
Taken from graphql-kotlin https://github.com/ExpediaGroup/graphql-kotlin/blob/master/generator/graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/generator/internal/extensions/annotationExtensions.kt
Gets the NodeDefinition associated with the parent type Uses NodeDefinitionCollection.getNodeDefinitionsFromGraphQLNames to find the correct NodeDefinition
Taken from graphql-kotlin https://github.com/ExpediaGroup/graphql-kotlin/blob/master/generator/graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/generator/internal/extensions/kPropertyExtensions.kt
Taken from graphql-kotlin https://github.com/ExpediaGroup/graphql-kotlin/blob/master/generator/graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/generator/internal/extensions/kClassExtensions.kt
Uses AnnotationUtils.findAnnotation to find an annotation of type A
Uses AnnotatedElementUtils.findMergedRepeatableAnnotations to find all repeatable annotations of type A Includes annotations on superclasses
Uses AnnotatedElementUtils.getMergedRepeatableAnnotations to find all repeatable annotations of type A Excludes annotations on superclasses
Convert a list of spring objects into a list of TopLevelObjects that the schema generator can use Taken from graphql-kotlin https://github.com/ExpediaGroup/graphql-kotlin/blob/master/servers/graphql-kotlin-spring-server/src/main/kotlin/com/expediagroup/graphql/server/spring/extensions/generatorExtensions.kt