# Composition issues with shared types

**URL:** <https://community.apollographql.com/t/composition-issues-with-shared-types/6360>\
**Category:** Schema Design\
**Tags:** federation\
**Created:** [June 13, 2023, 6:22pm UTC](https://community.apollographql.com/t/composition-issues-with-shared-types/6360 "2023-06-13T18:22:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![braohtuens](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@braohtuens](https://community.apollographql.com/u/braohtuens)\
**Post date:** [June 13, 2023, 6:22pm UTC](https://community.apollographql.com/t/composition-issues-with-shared-types/6360/1 "2023-06-13T18:22:52Z")

</div>

Hey there!

I need some help trying to solve a problem with federated subgraphs and my schemas.

I have the following setup: two subgraphs, one for Books, and one for Links.

The books subgraph looks like

Books Subgraph

```auto
type Book {
  id: ID!
  author: String
  pages: Int
}

```

Links Subgraph

```auto
type Links {
  github: String
  twitter: String
  facebook: String
}

```

Now in my database (can’t change this part, i know ideally my data wouldn’t be setup like this) I have just the books table, and each book has a nested set of links in the record. i.e.

```auto
{
  id: 1234,
  author: "JK Rowling",
  pages: 420,
  links: {
    twitter: "@jkrowlng"
  }
}

```

I would like to keep the links types in the links subgraph, and just reference them in the books subgraph. Does anyone know how to accomplish this with federation 2.3?

Thanks!

---

<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/composition-issues-with-shared-types/6360/2 "2025-02-06T20:48:45Z")

</div>


