Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

refactor(example/kotlin): correct User model definition to expose properties to the deserializer #14

Merged
merged 1 commit into from
Jul 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/kotlin-sample/src/main/kotlin/models/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import io.aexp.nodes.graphql.annotations.GraphQLVariable

@GraphQLProperty(name = "user", arguments = arrayOf(
GraphQLArgument(name = "login")))
class User(private val name: String, private val location: String, @GraphQLVariable(name = "isFork", scalar = "Boolean!") private val repositories: RepositoryConnection? = null) {
class User(val name: String? = null, val location: String? = null, @GraphQLVariable(name = "isFork", scalar = "Boolean!") val repositories: RepositoryConnection? = null) {

override fun toString(): String {
return "User(name=$name, location=$location, repositories=$repositories)"
Expand Down