apollo-compiler@1.0.0-beta.12 (#804)
·
189 commits
to main
since this release
BREAKING
InputValueDefinition::is_required()returns false if it has a default value - goto-bus-stop, pull/798- Now
argument.is_required() == trueonly if the type is non-null and there is no
default value, meaning a value must be provided when it's used.
- Now
Features
- Implement
fmt::DisplayforComponentName- goto-bus-stop, pull/795 - Add
FieldDefinition::argument_by_nameandDirectiveDefinition::argument_by_name- goto-bus-stop, pull/801- These methods return an argument definition by name, or
None.
- These methods return an argument definition by name, or
- Add
.lookupmethods 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
- update ariadne to 0.4.0 - pull/793
Ariadne is the diagnostic printing crate used for validation errors. v0.4.0 improves memory usage.