diff --git a/apollo-federation/src/schema/mod.rs b/apollo-federation/src/schema/mod.rs index d6d7a73291..3def48068b 100644 --- a/apollo-federation/src/schema/mod.rs +++ b/apollo-federation/src/schema/mod.rs @@ -275,13 +275,12 @@ impl ValidFederationSchema { return Ok(name); } - // TODO: this otherwise needs to check for a type name in schema based + // TODO for composition: this otherwise needs to check for a type name in schema based // on the latest federation version. - // FED-311 - Err(SingleFederationError::Internal { - message: String::from("typename should have been looked in a federation feature"), - } - .into()) + // This code path is not hit during planning. + Err(FederationError::internal( + "typename should have been looked in a federation feature", + )) } pub(crate) fn is_interface_object_type(