GraphQL Kotlin Toolkit: JPA

GraphQL Tools for JPA

Лицензия

Лицензия

Категории

Категории

Kotlin Языки программирования
Группа

Группа

com.auritylab.graphql-kotlin-toolkit
Идентификатор

Идентификатор

jpa
Последняя версия

Последняя версия

0.6.3
Дата

Дата

Тип

Тип

module
Описание

Описание

GraphQL Kotlin Toolkit: JPA
GraphQL Tools for JPA
Ссылка на сайт

Ссылка на сайт

https://github.com/AurityLab/graphql-kotlin-toolkit
Организация-разработчик

Организация-разработчик

AurityLab UG (haftungsbeschraenkt)
Система контроля версий

Система контроля версий

https://github.com/AurityLab/graphql-kotlin-toolkit

Скачать jpa

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
jakarta.persistence : jakarta.persistence-api jar 2.2.3

runtime (3)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.4.10
com.auritylab.graphql-kotlin-toolkit : common jar 0.6.3
com.graphql-java : graphql-java jar 15.0

Модули Проекта

Данный проект не имеет модулей.

GraphQL Kotlin Toolkit

GitHub Actions ktlint Maven Central Maven Central

A toolkit for GraphQL, specifically for Kotlin. This toolkit provides some useful tools that are compatible with graphql-java.

Code generation

This tool follows the schema-first approach, in which you first write your schema.graphqls files and implement the server-side code for it afterwards. This code generator additionally creates an interface for each resolver. These can be used to implement each resolver in a clean way. The tool also provides specific parameters for each argument, allowing a more type safe way to access the incoming data. This code generator also supports Kotlin's null safety feature!

Example resolver:

class MutationUpdateUser : GQLMutationUpdateUser {
    override fun resolve(input: GQLUpdateUserInput, env: GQLMutationUpdateUser.Env): User {
        TODO("implement your resolver")
    }
}

Getting started here!

Spring Boot integration

This integration works in a more opinionated way as it provides additional annotations which can be used to register code for various GraphQL types. It also comes with a servlet, which handles all GraphQL requests.

Getting started here!

Documentation

com.auritylab.graphql-kotlin-toolkit

AurityLab

Версии библиотеки

Версия
0.6.3
0.6.2
0.6.1
0.6.0