diff --git a/apollo-federation-types/src/config/subgraph.rs b/apollo-federation-types/src/config/subgraph.rs index 77b0095c0..91b7ee397 100644 --- a/apollo-federation-types/src/config/subgraph.rs +++ b/apollo-federation-types/src/config/subgraph.rs @@ -4,7 +4,7 @@ use std::collections::HashMap; use url::Url; /// Config for a single [subgraph](https://www.apollographql.com/docs/federation/subgraphs/) -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)] pub struct SubgraphConfig { /// The routing URL for the subgraph. /// This will appear in supergraph SDL and diff --git a/apollo-federation-types/src/config/supergraph.rs b/apollo-federation-types/src/config/supergraph.rs index 696c18b6a..21cc6b895 100644 --- a/apollo-federation-types/src/config/supergraph.rs +++ b/apollo-federation-types/src/config/supergraph.rs @@ -10,7 +10,7 @@ use std::{collections::BTreeMap, fs}; /// The configuration for a single supergraph /// composed of multiple subgraphs. -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)] pub struct SupergraphConfig { // Store config in a BTreeMap, as HashMap is non-deterministic. subgraphs: BTreeMap<String, SubgraphConfig>,