Closed SimonSapin closed 11 months ago
The FederationSchema
struct owns a Schema
and some methods mutate it. This PR enables converting to &Valid<Schema>
(for use in FieldSet::parse
) from &Valid<FederationSchema>
which also has the non-mutating methods.
Before this PR, ValidFederationSchema
would have to be an entirely separate type that owns Valid<Schema>
and duplicates non-mutating methods.
Ahhh right I get it, thanks!
federation-next needs this to upgrade to beta 8+