Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Conversation

adminfairjungle
Copy link

Allows reusing the same kotlin type (with a different name attribute) in a gql type and a gql inputType.

Avoids many useless kotlin type duplication to circumvent GraphQL constraint that output types cannot be input types (even when it's totally legit).

Example use :

val schema = KGraphQL.schema {
    inputType<MyKotlinType>() {
        name="TypeAsInput"
    }
    type<MyKotlinType>() {
        name="TypeAsObject"
    }
}

Allows reusing the same kotlin type (with a different name attribute) in a gql type and a gql inputType.
@coveralls
Copy link

coveralls commented Apr 11, 2019

Coverage Status

Coverage increased (+0.2%) to 88.08% when pulling 2dfc9d5 on Bertrand:same_type_used_for_object_and_inputtype into 42fef4a on pgutkowski:master.

@adminfairjungle
Copy link
Author

Sorry, messed up with my github accounts. Closing the PR. Will reopen it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants