-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
OPTIONAL_ARG_ADDED a breaking change ?
Can any one help regarding the rational for OPTIONAL_ARG_ADDED as a breaking change ?
it('should detect if an optional field argument was added', () => {
const oldSchema = buildSchema(type Type1 { field1(arg1: String): String }
);
const newSchema = buildSchema(`
type Type1 {
field1(arg1: String, arg2: String): String
}
`);
expect(findDangerousChanges(oldSchema, newSchema)).to.deep.equal([
{
type: DangerousChangeType.OPTIONAL_ARG_ADDED,
description: 'An optional arg arg2 on Type1.field1 was added.',
},
]);
https://www.apollographql.com/docs/graphos/delivery/schema-checks/#schema-additions implementation list this change as non breaking change as well, which i agree too as well.
Metadata
Metadata
Assignees
Labels
No labels