Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 756 Bytes

File metadata and controls

30 lines (21 loc) · 756 Bytes

GraphQL Kotlin Upload

GraphQL Multipart Request Spec implementation of GraphQL Kotlin.

Getting Started

Gradle

repositories {
    maven("https://github.com/wickedev/graphql-jetpack/raw/deploy/maven-repo")
}

dependencies {
    implementation("io.github.wickedev:graphql-jetpack-starter:0.5.6")
}

Example

class Upload(filePart: FilePart) : FilePart by filePart

@Compoment
class SampleMutation : Mutation {
    fun uploads(files: List<Upload>): String = "${files.map { it.filename() }} Upload Successfully"

    fun upload(file: Upload): String = "${file.filename()} Upload Successfully"
}