Closed goto-bus-stop closed 8 months ago
It might be overly dramatic to highlight the is_required() as BREAKING, but it is technically breaking
is_required()
InputValueDefinition::is_required()
argument.is_required() == true
fmt::Display
ComponentName
FieldDefinition::argument_by_name
DirectiveDefinition::argument_by_name
None
.lookup
coord!(Type).lookup(&schema)
Type
coord!(Type.field).lookup_field(&schema)
field
coord!(Enum.VALUE).lookup_enum_value(&schema)
VALUE
coord!(InputType.field).lookup_input_field(&schema)
coord!(Type.field(argument:)).lookup(&schema)
argument
coord!(@directive).lookup(&schema)
@directive
coord!(@directive(argument:)).lookup(&schema)
string.parse::<SchemaCoordinate>()?.lookup(&schema)
It might be overly dramatic to highlight the
is_required()
as BREAKING, but it is technically breakingBREAKING
InputValueDefinition::is_required()
returns false if it has a default value - goto-bus-stop, pull/798argument.is_required() == true
only if the type is non-null and there is no default value, meaning a value must be provided when it's used.Features
fmt::Display
forComponentName
- goto-bus-stop, pull/795FieldDefinition::argument_by_name
andDirectiveDefinition::argument_by_name
- goto-bus-stop, pull/801None
..lookup
methods to schema coordinates - goto-bus-stop, pull/803coord!(Type).lookup(&schema)
returns the type definition forType
.coord!(Type.field).lookup_field(&schema)
returns the field definition forfield
.coord!(Enum.VALUE).lookup_enum_value(&schema)
returns the enum value definition forVALUE
.coord!(InputType.field).lookup_input_field(&schema)
returns the input field definition forfield
.coord!(Type.field(argument:)).lookup(&schema)
returns the argument definition forargument
.coord!(@directive).lookup(&schema)
returns the directive definition for@directive
.coord!(@directive(argument:)).lookup(&schema)
returns the argument definition forargument
.string.parse::<SchemaCoordinate>()?.lookup(&schema)
returns an enum with all the elements that can be looked up using schema coordinates.Maintenance