Detect added nullable input field or added nullable argument#1096
Detect added nullable input field or added nullable argument#1096leebyron merged 1 commit intographql:masterfrom
Conversation
|
cc @sam-swarr @mjmahone - does this map to your understanding of potential issues? |
|
@aolesky, thanks for writing this! The code looks great and ready to merge. @leebyron, yep these are two good examples of cases that fall under potentially "dangerous" changes. Not technically breaking from the spec's perspective, but could cause issues if client code is not designed well. The diff looks good to me. I don't have the right privileges to accept it. Can you do that please? |
|
@leebyron yeah this is a good example. For instance, if your client code creates strict flow types for input objects, you may now need to update your client code when a nullable field is added to the input object. |
|
@sam-swarr - you should be able to add yourself in the internal "oss" tool. I'll get this resolved and merged! |
T23304543
findBreakingChanges now includes checks for adding a nullable field to an existing input, and adding a nullable argument. These changes won't necessarily break a schema, but they can potentially cause issues. I also added unit tests for these new detections.