Skip to content

Commit

Permalink
Fix entity interface links (#3091)
Browse files Browse the repository at this point in the history
Fixes broken links + adds a redirect
  • Loading branch information
Meschreiber authored Jul 18, 2024
1 parent 1e6cb9c commit 0cad761
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/source/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
/federated-types/federated-directives /docs/federation/federated-schemas/federated-directives
/federated-types/sharing-types /docs/federation/federated-schemas/sharing-types
/federated-types/interfaces /docs/federation/entities/interfaces
/federated-schemas/interfaces /docs/federation/entities/interfaces
4 changes: 2 additions & 2 deletions docs/source/federated-schemas/federated-directives.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ To check whether your subgraph library supports repeatable directives, see the `

</Note>

In Apollo Federation 2.3 and later, you can also apply `@key` to `interface` definitions to create [entity interfaces](./interfaces/). If you apply `@key` to an `interface` in earlier versions of Federation 2, a composition error occurs.
In Apollo Federation 2.3 and later, you can also apply `@key` to `interface` definitions to create [entity interfaces](../entities/interfaces/). If you apply `@key` to an `interface` in earlier versions of Federation 2, a composition error occurs.

#### Arguments

Expand Down Expand Up @@ -211,7 +211,7 @@ Indicates that an object definition serves as an abstraction of another subgraph

During composition, the fields of every `@interfaceObject` are added both to their corresponding `interface` definition and to all entity types that implement that interface.

[Learn more about entity interfaces.](./interfaces/)
[Learn more about entity interfaces.](../entities/interfaces/)

<MinVersion version="1.0">

Expand Down
2 changes: 1 addition & 1 deletion docs/source/federated-schemas/sharing-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ To prevent this error, all implementing types across all subgraphs need to be up

Apollo Federation 2.3 introduces a powerful abstraction mechanism for interfaces, enabling you to add interface fields across subgraphs without needing to update every single implementing type.

[Learn more about entity interfaces.](./interfaces/)
[Learn more about entity interfaces.](../entities/interfaces/)

## Input types

Expand Down
4 changes: 2 additions & 2 deletions docs/source/federation-versions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ Minimum router version
</td>
<td>

Introduced. [Learn more.](./federated-types/interfaces)
Introduced. [Learn more.](./entities/interfaces)

```graphql
directive @interfaceObject on OBJECT
Expand All @@ -524,7 +524,7 @@ directive @interfaceObject on OBJECT
</td>
<td>

Can now be applied to interface definitions to support [entity interfaces](./federated-types/interfaces/).
Can now be applied to interface definitions to support [entity interfaces](./entities/interfaces/).

(Previous versions of composition threw an error if `@key` was applied to an interface definition.)

Expand Down

0 comments on commit 0cad761

Please sign in to comment.