GraphQL Multipart Request Spec implementation of GraphQL Kotlin.
repositories {
maven("https://github.com/wickedev/graphql-jetpack/raw/deploy/maven-repo")
}
dependencies {
implementation("io.github.wickedev:graphql-jetpack-starter:0.5.6")
}
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"
}