Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When overwriting a property, the GraphQL repeats the original property unless ignored #21

Closed
jeggy opened this issue May 24, 2019 · 1 comment

Comments

@jeggy
Copy link
Member

jeggy commented May 24, 2019

Copied from: pgutkowski#64

@jeggy
Copy link
Member Author

jeggy commented Aug 4, 2020

This has been fixed and is working now.

Something like this is valid:

data class Value(
    val id: String,
    val name: String
)

query("hello") {
    resolver { ->
        Value("25", "Hello World")
    }
}
type<Value> {
    property<Int>("id") {
        resolver { it.id.toInt() }
    }
}

@jeggy jeggy closed this as completed Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant