Skip to content

is OPTIONAL_ARG_ADDED a breaking change ? #3829

@spydercavern

Description

@spydercavern

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions