Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszkuc committed Oct 17, 2023
1 parent 9e49a90 commit 98205b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
[![Join the community forum](https://img.shields.io/badge/join%20the%20community-forum-blueviolet)](https://community.apollographql.com)
[![Join our Discord server](https://img.shields.io/discord/1022972389463687228.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square)](https://discord.gg/graphos)


# Apollo Federation for Hot Chocolate

>This is a fork of `HotChocolate.Federation` module that aims to provide first class [Apollo Federation](https://www.apollographql.com/docs/federation/) support for [`HotChocolate` subgraphs](https://chillicream.com/docs/hotchocolate/v13). See [migration guide](#migration-guide) for details.
>This is the **official Apollo Federation support library for Hot Chocolate** with support for Federation 1 and Federation 2 subgraphs. For backwards compatibility, it was based on HotChocolate's original Fed 1 module with added support for Fed v2. We recommend [migrating to this officially supported library](#migration-guide) as ongoing Federation support for HotChocolate ecosystem and using `rover subgraph create` to kickstart new projects.
[**Apollo Federation**](https://www.apollographql.com/docs/federation/) is a powerful, open architecture that helps you create a **unified supergraph** that combines multiple GraphQL APIs.
`ApolloGraphQL.HotChocolate.Federation` provides Apollo Federation support for building subgraphs in the `HotChocolate` ecosystem. Individual subgraphs can be run independently of each other but can also specify
Expand All @@ -34,7 +33,6 @@ var builder = WebApplication.CreateBuilder(args);

builder.Services
.AddGraphQLServer()
// .AddApolloFederation() // use this instead if you want to opt-in to fed v1
.AddApolloFederationV2()
// register your types and services
;
Expand All @@ -44,6 +42,8 @@ app.MapGraphQL();
app.Run();
```

> If you would like to opt-in to Federation v1 schema, you need to use `.AddApolloFederation()` extension instead.
## Usage

Refer to [`HotChocolate` documentation](https://chillicream.com/docs/hotchocolate/v13) for detailed information on how to create GraphQL schemas and configure your server.
Expand Down

0 comments on commit 98205b0

Please sign in to comment.