Skip to content

Any possible support for kotlin DSL query and mutation? #1403

@ronjunevaldoz

Description

@ronjunevaldoz

Example DSL for query and mutation.

 // reset password
query("resetPassword") {
    description = "Generates a new password and send via email."
    resolver { code: String, loginLink: String ->
        userUseCase.resetPassword(code, loginLink)
    }
}
// forgot password
mutation("forgotPassword") {
    description = "Generates a reset password link with code and send via email."
    resolver { emailOrUsername: String, resetPasswordLink: String ->
        userUseCase.forgotPassword(emailOrUsername, resetPasswordLink)
    }
}

Source: https://github.com/aPureBase/KGraphQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions