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

Add GraphQLSchema types field #327

Merged
merged 1 commit into from
Mar 24, 2016
Merged

Add GraphQLSchema types field #327

merged 1 commit into from
Mar 24, 2016

Conversation

leebyron
Copy link
Contributor

This is a rebased and updated version of @tgriesser's #199. I further extended it to completely remove the side-effectful mutation of Interface types rather than just deferring that mutation to schema creation time.

This introduces a breaking change to the Type System API. Now, any individual Interface type does not have the required information to answer getPossibleTypes or isPossibleType without knowing the other types in the Schema. These methods were moved to the Schema API, accepting the abstract type as the first parameter.

This also introduces a breaking change to the type comparator functions: isTypeSubTypeOf and doTypesOverlap which now require a Schema as a first argument.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 99.322% when pulling f3c80d8 on tgriesser-schema-types into 43992e3 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 99.322% when pulling 2330fef on tgriesser-schema-types into 1de281b on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 99.42% when pulling be3ee64 on tgriesser-schema-types into 2d833ad on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 99.42% when pulling 5621af2 on tgriesser-schema-types into 3f6a7f4 on master.

This is a rebased and updated version of @tgriesser's #199. I further extended it to completely remove the side-effectful mutation of Interface types rather than just deferring that mutation to schema creation time.

This introduces a *breaking* change to the Type System API. Now, any individual Interface type does not have the required information to answer `getPossibleTypes` or `isPossibleType` without knowing the other types in the Schema. These methods were moved to the Schema API, accepting the abstract type as the first parameter.

This also introduces a *breaking* change to the type comparator functions: `isTypeSubTypeOf` and `doTypesOverlap` which now require a Schema as a first argument.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 6a1f23e on tgriesser-schema-types into * on master*.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 99.421% when pulling 6a1f23e on tgriesser-schema-types into a781b55 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants