# Error in federation two subgraphs

**URL:** <https://community.apollographql.com/t/error-in-federation-two-subgraphs/6344>\
**Category:** Router\
**Tags:** federation, router\
**Created:** [June 9, 2023, 12:01am UTC](https://community.apollographql.com/t/error-in-federation-two-subgraphs/6344 "2023-06-09T00:01:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdrianMolero](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/adrianmolero/32/941_2.png) [@AdrianMolero](https://community.apollographql.com/u/AdrianMolero)\
**Post date:** [June 9, 2023, 12:01am UTC](https://community.apollographql.com/t/error-in-federation-two-subgraphs/6344/1 "2023-06-09T00:01:25Z")

</div>

Hello community, could you help me with the following case: I have 2 networks that I am trying to federate with a 1 to many relationship as follows:

this is Subgraph1:  
type Resource implements DefaultConfig key(fields: “id”) {  
id: ID  
resourceSpec: resourceSpecification! provides(fields: “id name”)  
}

type ResourceSpecification.  
key(fields: “id”)  
extends  
{  
id: ID external  
name: string! external  
}

this is Subgraph2  
type ResourceSpecification key(fields: “id”) {  
id: id!  
name: String!  
quantity: Int  
resourceType: ResourceType  
reconciliationRule: ReconciliationRule  
resourcePropertyTypes: [ResourcePropertyType] [resourceSpecificationRelationship: ResourceSpecificationRelationship  
resourceSpecificationRelationship: [ResourceSpecificationRelationship] [ResourceSpecificationRelationship] [resourceSpecificationRelationship  
resourceSpecificationItems: [ResourceSpecificationItems] [ResourceSpecificationItems  
vendor: Vendor  
}

I need to figure out how I could establish a communication between my graph 1 and graph2 in a bidirectional way, actually I have tried several solutions including the Compound keys but I don’t see a way to connect my resourcespecification to get all its associated resources list.

---

<div class="post-metadata">

**Author:** ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Post date:** [February 6, 2025, 8:48pm UTC](https://community.apollographql.com/t/error-in-federation-two-subgraphs/6344/2 "2025-02-06T20:48:44Z")

</div>


