Skip to content

Commit

Permalink
breaking: change namespace to ApolloGraphQL.HotChocolate.Federation (#2)
Browse files Browse the repository at this point in the history
Changing the namespace in order to better structure the project for
future addition of Federation v2 support.
  • Loading branch information
dariuszkuc committed Oct 11, 2023
1 parent 1efa2a1 commit 53c2813
Show file tree
Hide file tree
Showing 127 changed files with 453 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
NEW_VERSION=$(echo "${GITHUB_REF}" | sed 's/.*\/v//')
echo "New version: ${NEW_VERSION}"
dotnet pack -p:Version=${NEW_VERSION} -p:Configuration=Release src/Federation/ApolloGraphQL.Federation.HotChocolate.csproj
dotnet pack -p:Version=${NEW_VERSION} -p:Configuration=Release src/Federation/ApolloGraphQL.HotChocolate.Federation.csproj
- name: Publish package
run: dotnet nuget push src/Federation/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
Expand Down
4 changes: 2 additions & 2 deletions ApolloGraphQL.Federation.HotChocolate.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{74D95657-7BC6-409F-8484-F963A128764A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Federation", "src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj", "{46D3566C-FBBC-46BB-A9AB-454F348A003E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Federation", "src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj", "{46D3566C-FBBC-46BB-A9AB-454F348A003E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{EA937CAB-A9B1-474E-BF2A-A45399561B2E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Federation.Tests", "test\Federation.Tests\ApolloGraphQL.Federation.HotChocolate.Tests.csproj", "{3B96CAE2-A6C0-4BA6-A21B-1CBFE6EF7A16}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Federation.Tests", "test\Federation.Tests\ApolloGraphQL.HotChocolate.Federation.Tests.csproj", "{3B96CAE2-A6C0-4BA6-A21B-1CBFE6EF7A16}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{82050CA3-2111-49D6-B682-EA22191ADB99}"
EndProject
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dotnet build

#### Unit Tests

We are using `ApolloGraphQL.Federation.HotChocolate.Tests` project for our unit tests. This ensures we have good code coverage and can easily test all cases of schema federation.
We are using `ApolloGraphQL.HotChocolate.Federation.Tests` project for our unit tests. This ensures we have good code coverage and can easily test all cases of schema federation.

To run tests:

Expand Down Expand Up @@ -66,7 +66,7 @@ In order to [release a new version](https://github.com/apollographql/federation-
and tag the commit. Releases are following [semantic versioning](https://semver.org/) and specify major, minor and patch version.

Once release is published it will trigger corresponding [Github Action](https://github.com/apollographql/federation-hotchocolate/blob/main/.github/workflows/release.yaml)
based on the published release event. Release workflow will then proceed to build and publish all library artifacts to [NuGet](https://www.nuget.org/packages/ApolloGraphQL.Federation.HotChocolate).
based on the published release event. Release workflow will then proceed to build and publish all library artifacts to [NuGet](https://www.nuget.org/packages/ApolloGraphQL.HotChocolate.Federation).

### Release requirements

Expand Down
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Continuous Integration](https://github.com/apollographql/federation-hotchocolate/workflows/Continuous%20Integration/badge.svg)](https://github.com/apollographql/federation-hotchocolate/actions?query=workflow%3A%22Continuous+Integration%22)
[![MIT License](https://img.shields.io/github/license/apollographql/federation-hotchocolate.svg)](LICENSE)
[![Nuget](https://img.shields.io/nuget/v/ApolloGraphQL.Federation.HotChocolate)](https://www.nuget.org/packages/ApolloGraphQL.Federation.HotChocolate/)
[![Nuget](https://img.shields.io/nuget/v/ApolloGraphQL.HotChocolate.Federation)](https://www.nuget.org/packages/ApolloGraphQL.HotChocolate.Federation/)
[![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)

Expand All @@ -10,28 +10,19 @@
>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).
[**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.Federation.HotChocolate` provides Apollo Federation support for building subgraphs in the `HotChocolate` ecosystem. Individual subgraphs can be run independently of each other but can also specify
`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
relationships to the other subgraphs by using Federated directives. See [Apollo Federation documentation](https://www.apollographql.com/docs/federation/) for details.

```mermaid
graph BT;
router([Supergraph<br/>router]);
serviceA[Users<br/>subgraph];
serviceB[Products<br/>subgraph];
serviceC[Reviews<br/>subgraph];
router --- serviceA & serviceB & serviceC;
```

## Installation

`ApolloGraphQL.Federation.HotChocolate` package is published to [Nuget](https://img.shields.io/nuget/v/ApolloGraphQL.Federation.HotChocolate). Update your `.csproj` file with following package references
`ApolloGraphQL.HotChocolate.Federation` package is published to [Nuget](https://img.shields.io/nuget/v/ApolloGraphQL.HotChocolate.Federation). Update your `.csproj` file with following package references

```xml
<ItemGroup>
<!-- make sure to also include HotChocolate package -->
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<!-- federation package -->
<PackageInstallation packageName="ApolloGraphQL.Federation.HotChocolate"/>
<PackageReference Include="ApolloGraphQL.HotChocolate.Federation" Version="$LatestVersion" />
</ItemGroup>
```

Expand Down Expand Up @@ -60,7 +51,7 @@ Apollo Federation requires subgraphs to provide some additional metadata to make
the supergraph by the specified `@key`s. Since entities can be extended by various subgraphs, we need an extra entry point to access the entities, i.e. subgraphs need to
implement reference resolvers for entities that they support.

Currently `ApolloGraphQL.Federation.HotChocolate` supports only Apollo Federation v1. See [Apollo documentation](https://www.apollographql.com/docs/federation/) for additional Federation details.
Currently `ApolloGraphQL.HotChocolate.Federation` supports only Apollo Federation v1. See [Apollo documentation](https://www.apollographql.com/docs/federation/) for additional Federation details.

### Annotation

Expand Down Expand Up @@ -109,7 +100,7 @@ type Product @key(fields: "id") {
Directives

* `Key` applicable on objects, see [`@key` documentation](https://www.apollographql.com/docs/federation/federated-types/federated-directives#key)
* `ExtendService` applicable on objects, see [`@extends` documentation](https://www.apollographql.com/docs/federation/federated-types/federated-directives#extends)
* `Extends` applicable on objects, see [`@extends` documentation](https://www.apollographql.com/docs/federation/federated-types/federated-directives#extends)
* `External` applicable on fields, see [`@external` documentation](https://www.apollographql.com/docs/federation/federated-types/federated-directives#external)
* `Provides` applicable on fields, see [`@provides` documentation](https://www.apollographql.com/docs/federation/federated-types/federated-directives#provides)
* `Requires` applicable on fields, see [`@requires` documentation](https://www.apollographql.com/docs/federation/federated-types/federated-directives#requires)
Expand Down
2 changes: 1 addition & 1 deletion compatibility/Products.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<PackageReference Include="HotChocolate.AspNetCore.CommandLine" Version="13.5.1" />
<ProjectReference Include="..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion compatibility/Types/DeprecatedProduct.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Products;

Expand Down
2 changes: 1 addition & 1 deletion compatibility/Types/Product.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Products;

Expand Down
2 changes: 1 addition & 1 deletion compatibility/Types/ProductResearch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Products;

Expand Down
2 changes: 1 addition & 1 deletion compatibility/Types/Query.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Products;

Expand Down
2 changes: 1 addition & 1 deletion compatibility/Types/User.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Products;

Expand Down
2 changes: 1 addition & 1 deletion compatibility/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Accounts/Accounts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Accounts/User.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Accounts;

Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Accounts/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Inventory/Inventory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Inventory/Product.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Inventory;

Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Inventory/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Products/Product.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Products;

Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Products/Products.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Products/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

var builder = WebApplication.CreateBuilder(args);

Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Products/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Reviews/Product.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Reviews;

Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Reviews/Review.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Reviews;

Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Reviews/Reviews.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Reviews/User.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApolloGraphQL.Federation.HotChocolate;
using ApolloGraphQL.HotChocolate.Federation;

namespace Reviews;

Expand Down
2 changes: 1 addition & 1 deletion examples/AnnotationBased/Reviews/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/CodeFirst/Accounts/Accounts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/CodeFirst/Accounts/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/CodeFirst/Inventory/Inventory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/CodeFirst/Inventory/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/CodeFirst/Products/Products.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/CodeFirst/Products/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
2 changes: 1 addition & 1 deletion examples/CodeFirst/Reviews/Reviews.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="HotChocolate.AspNetCore" Version="13.5.1" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.Federation.HotChocolate.csproj" />
<ProjectReference Include="..\..\..\src\Federation\ApolloGraphQL.HotChocolate.Federation.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion examples/CodeFirst/Reviews/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
"System.IO.Hashing": "7.0.0"
}
},
"apollographql.federation.hotchocolate": {
"ApolloGraphQL.HotChocolate.Federation": {
"type": "Project",
"dependencies": {
"HotChocolate": "[13.5.1, )"
Expand Down
8 changes: 4 additions & 4 deletions src/Federation/AnyType.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Linq;
using ApolloGraphQL.Federation.HotChocolate.Constants;
using ApolloGraphQL.Federation.HotChocolate.Properties;
using ApolloGraphQL.HotChocolate.Federation.Constants;
using ApolloGraphQL.HotChocolate.Federation.Properties;
using HotChocolate.Language;
using HotChocolate.Utilities;
using static ApolloGraphQL.Federation.HotChocolate.ThrowHelper;
using static ApolloGraphQL.HotChocolate.Federation.ThrowHelper;

namespace ApolloGraphQL.Federation.HotChocolate;
namespace ApolloGraphQL.HotChocolate.Federation;

/// <summary>
/// The _Any scalar is used to pass representations of entities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<PropertyGroup>
<TargetFrameworks>net7.0; net6.0</TargetFrameworks>
<RootNamespace>ApolloGraphQL.Federation.HotChocolate</RootNamespace>
<PackageId>ApolloGraphQL.Federation.HotChocolate</PackageId>
<AssemblyName>ApolloGraphQL.Federation.HotChocolate</AssemblyName>
<RootNamespace>ApolloGraphQL.HotChocolate.Federation</RootNamespace>
<PackageId>ApolloGraphQL.HotChocolate.Federation</PackageId>
<AssemblyName>ApolloGraphQL.HotChocolate.Federation</AssemblyName>
<Description>Apollo Federation Subgraph support for HotChocolate.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="ApolloGraphQL.Federation.HotChocolate.Tests" />
<InternalsVisibleTo Include="ApolloGraphQL.HotChocolate.Federation.Tests" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Federation/Constants/WellKnownArgumentNames.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ApolloGraphQL.Federation.HotChocolate.Constants;
namespace ApolloGraphQL.HotChocolate.Federation.Constants;

internal static class WellKnownArgumentNames
{
Expand Down
10 changes: 5 additions & 5 deletions src/Federation/Constants/WellKnownContextData.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
namespace ApolloGraphQL.Federation.HotChocolate.Constants;
namespace ApolloGraphQL.HotChocolate.Federation.Constants;

internal static class WellKnownContextData
{
public const string KeyMarker = "ApolloGraphQL.Federation.HotChocolate.Key";
public const string ExtendMarker = "ApolloGraphQL.Federation.HotChocolate.Extend";
public const string ExternalSetter = "ApolloGraphQL.Federation.HotChocolate.ExternalSetter";
public const string EntityResolver = "ApolloGraphQL.Federation.HotChocolate.EntityResolver";
public const string KeyMarker = "ApolloGraphQL.HotChocolate.Federation.Key";
public const string ExtendMarker = "ApolloGraphQL.HotChocolate.Federation.Extend";
public const string ExternalSetter = "ApolloGraphQL.HotChocolate.Federation.ExternalSetter";
public const string EntityResolver = "ApolloGraphQL.HotChocolate.Federation.EntityResolver";
public const string DataField = "data";
public const string TypeField = "__type";
}
2 changes: 1 addition & 1 deletion src/Federation/Constants/WellKnownFieldNames.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ApolloGraphQL.Federation.HotChocolate.Constants;
namespace ApolloGraphQL.HotChocolate.Federation.Constants;

internal static class WellKnownFieldNames
{
Expand Down

0 comments on commit 53c2813

Please sign in to comment.