-
Notifications
You must be signed in to change notification settings - Fork 2k
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
findBreakingChanges yields TYPE_REMOVED
when a single instance of a scalar is removed
#2197
Comments
Yes, exactly that. We are in process of clarifying it in the spec:
So technically you removed
@maxuuell What do you think? |
So I can create a schema with only my types and once schema is created some additional scalars etc. will be added. Is there a method to strip out this additional element? Getting a config from existing schema will still contain them and I saw people doing this manually in community libraries. It that is possible then this schema can be passed to compare method and it will produce diff only for what is specified in schema string, which some people might expect. Without that filtering on changes is needed - an assessment that this scalar was my own or it was comming from core lib., |
@IvanGoncharov Thank you for clarifying and circling back. I think the newer message is fine. |
@wtrocki SDL is not a single representation of the spec, for example introspection contains definitions for all types (including standard scalars). |
An interesting behavior was found when playing around with
findBreakingChanges
between two schemas.When two schemas are compared, with one of them having only one
Int
type, and the second removes the onlyInt
type, the breaking changes array will show:Should this be two breaking changes? It seems odd to say removing the last instance of a scalar type would be a breaking change, as opposed to removing a defined object type.
Does that mean when a schema is created, it will strip out any scalars that aren't being used?
The text was updated successfully, but these errors were encountered: