FxMap.HotChocolate
4.1.3
See the version list below for details.
dotnet add package FxMap.HotChocolate --version 4.1.3
NuGet\Install-Package FxMap.HotChocolate -Version 4.1.3
<PackageReference Include="FxMap.HotChocolate" Version="4.1.3" />
<PackageVersion Include="FxMap.HotChocolate" Version="4.1.3" />
<PackageReference Include="FxMap.HotChocolate" />
paket add FxMap.HotChocolate --version 4.1.3
#r "nuget: FxMap.HotChocolate, 4.1.3"
#:package FxMap.HotChocolate@4.1.3
#addin nuget:?package=FxMap.HotChocolate&version=4.1.3
#tool nuget:?package=FxMap.HotChocolate&version=4.1.3
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 (>= 4.1.3)
- HotChocolate.AspNetCore (>= 15.1.1)
-
net8.0
- FxMap (>= 4.1.3)
- HotChocolate.AspNetCore (>= 15.1.1)
-
net9.0
- FxMap (>= 4.1.3)
- HotChocolate.AspNetCore (>= 15.1.1)
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.0.0 | 32 | 10/14/2026 |
| 4.1.5 | 42 | 10/13/2026 |
| 4.1.4 | 42 | 10/13/2026 |
| 4.1.3 | 50 | 10/12/2026 |
| 4.1.2 | 55 | 10/11/2026 |
| 4.1.1 | 83 | 10/6/2026 |
| 4.1.0 | 84 | 10/5/2026 |
| 4.0.0 | 89 | 10/5/2026 |
| 3.0.0 | 94 | 10/2/2026 |
| 2.3.5 | 89 | 10/2/2026 |
| 2.3.4 | 82 | 10/2/2026 |
| 2.3.3 | 84 | 10/1/2026 |
| 2.3.2 | 90 | 10/1/2026 |
| 2.3.1 | 118 | 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 | 128 | 5/26/2026 |
| 2.1.1 | 124 | 5/26/2026 |
| 2.1.0 | 120 | 5/7/2026 |