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

Conversation

Bertrand
Copy link
Contributor

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() {
name="TypeAsInput"
}
type() {
name="TypeAsObject"
}
}

Allows reusing the same kotlin type (with a different name attribute) in a gql type and a gql inputType.
…t when 2 graphql types are actually 1 single kotlin type.
@coveralls
Copy link

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.

1 similar comment
@coveralls
Copy link

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.

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.

2 participants