FxMap.HotChocolate
5.1.1
dotnet add package FxMap.HotChocolate --version 5.1.1
NuGet\Install-Package FxMap.HotChocolate -Version 5.1.1
<PackageReference Include="FxMap.HotChocolate" Version="5.1.1" />
<PackageVersion Include="FxMap.HotChocolate" Version="5.1.1" />
<PackageReference Include="FxMap.HotChocolate" />
paket add FxMap.HotChocolate --version 5.1.1
#r "nuget: FxMap.HotChocolate, 5.1.1"
#:package FxMap.HotChocolate@5.1.1
#addin nuget:?package=FxMap.HotChocolate&version=5.1.1
#tool nuget:?package=FxMap.HotChocolate&version=5.1.1
FxMap.HotChocolate
HotChocolate integration for FxMap — GraphQL fields declared in a profile are resolved through FxMap.
FxMap · Documentation · Demo project
With FxMap.HotChocolate, a GraphQL type whose properties are declared in a ProfileOf<T> gets those fields resolved
through FxMap, across services and transports, instead of writing a resolver per field. See the
Hot Chocolate docs for the GraphQL side.
Installation
dotnet add package FxMap.HotChocolate
Warning
All FxMap.* packages must use the same version.
Usage
var registerBuilder = builder.Services.AddGraphQLServer()
.AddQueryType<Query>();
builder.Services.AddFxMap(cfg =>
{
cfg.AddEntitiesFromAssemblyContaining<SomeEntityAssemblyMarker>();
cfg.AddProfilesFromAssemblyContaining<SomeProfileAssemblyMarker>();
cfg.AddNats(config => config.NatsOpts(opts => opts.Url = "nats://localhost:4222"));
})
.AddHotChocolate(cfg => cfg.AddRequestExecutorBuilder(registerBuilder));
var app = builder.Build();
app.MapGraphQL();
app.Run();
Note
FxMap.HotChocolate creates an
ObjectTypeExtension<T>for each response type that has a profile. If you want to define the GraphQL type of such an object (for exampleUserResponse) yourself, useObjectTypeExtension<T>instead ofObjectType<T>.
Related packages
| Package | Description | Documentation |
|---|---|---|
| Core | ||
| FxMap | FxMap core: profiles, entity configs, the mapper and the expression language | README |
| Data providers | ||
| FxMap.EntityFrameworkCore | Answers requests from an Entity Framework Core DbContext |
README |
| FxMap.MongoDb | Answers requests from MongoDB collections | README |
| Integrations | ||
| FxMap.HotChocolate | Fills GraphQL response types through HotChocolate | This document |
| Transports | ||
| FxMap.Grpc | gRPC transport | README |
| FxMap.Nats | NATS transport | README |
| FxMap.RabbitMq | RabbitMQ transport | README |
| FxMap.Kafka | Apache Kafka transport | README |
| FxMap.Azure.ServiceBus | Azure Service Bus transport (Standard / Premium tiers) | README |
| FxMap.Aws.Sqs | Amazon SQS transport | README |
| Tooling | ||
| FxMap.Analyzers | Roslyn analyzer that validates expression strings at compile time | README |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FxMap (>= 5.1.1)
- HotChocolate.AspNetCore (>= 15.1.14)
-
net8.0
- FxMap (>= 5.1.1)
- HotChocolate.AspNetCore (>= 15.1.14)
-
net9.0
- FxMap (>= 5.1.1)
- HotChocolate.AspNetCore (>= 15.1.14)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.1 | 0 | 10/19/2026 |
| 5.1.0 | 64 | 10/15/2026 |
| 5.0.0 | 71 | 10/14/2026 |
| 4.1.5 | 78 | 10/13/2026 |
| 4.1.4 | 78 | 10/13/2026 |
| 4.1.3 | 81 | 10/12/2026 |
| 4.1.2 | 85 | 10/11/2026 |
| 4.1.1 | 85 | 10/6/2026 |
| 4.1.0 | 84 | 10/5/2026 |
| 4.0.0 | 91 | 10/5/2026 |
| 3.0.0 | 98 | 10/2/2026 |
| 2.3.5 | 92 | 10/2/2026 |
| 2.3.4 | 84 | 10/2/2026 |
| 2.3.3 | 86 | 10/1/2026 |
| 2.3.2 | 93 | 10/1/2026 |
| 2.3.1 | 119 | 8/21/2026 |
| 2.3.0 | 139 | 6/16/2026 |
| 2.2.2 | 125 | 6/3/2026 |
| 2.2.1 | 121 | 5/31/2026 |
| 2.2.0 | 129 | 5/26/2026 |