You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm proposing an option to return the nested schema changes for new types and fields.
This can be done by comparing the new types and fields to empty versions of them. Comparing the new type with an empty one returns Changes::FieldAdded and comparing this field with an empty one returns Changes::FieldArgumentAdded.
An approach like this does not require modifying the Change classes. It can be done in Schema::Diff or by having a similar class that does this "recursive" schema comparison.
The text was updated successfully, but these errors were encountered:
Hi 👋
For the schema comparison:
Old Schema:
New schema:
The current behaviour only triggers one change:
But for linting purposes, it's important to have the full set of changes:
I'm proposing an option to return the nested schema changes for new types and fields.
This can be done by comparing the new types and fields to empty versions of them. Comparing the new type with an empty one returns
Changes::FieldAdded
and comparing this field with an empty one returnsChanges::FieldArgumentAdded
.An approach like this does not require modifying the
Change
classes. It can be done inSchema::Diff
or by having a similar class that does this "recursive" schema comparison.The text was updated successfully, but these errors were encountered: