FxMap.HotChocolate
1.0.0
See the version list below for details.
dotnet add package FxMap.HotChocolate --version 1.0.0
NuGet\Install-Package FxMap.HotChocolate -Version 1.0.0
<PackageReference Include="FxMap.HotChocolate" Version="1.0.0" />
<PackageVersion Include="FxMap.HotChocolate" Version="1.0.0" />
<PackageReference Include="FxMap.HotChocolate" />
paket add FxMap.HotChocolate --version 1.0.0
#r "nuget: FxMap.HotChocolate, 1.0.0"
#:package FxMap.HotChocolate@1.0.0
#addin nuget:?package=FxMap.HotChocolate&version=1.0.0
#tool nuget:?package=FxMap.HotChocolate&version=1.0.0
FxMap.HotChocolate
FxMap.HotChocolate is an integration package that seamlessly connects FxMap with the HotChocolate GraphQL library (Hot Chocolate Docs).
With FxMap.HotChocolate, you get high-performance, FluentAPI-based data mapping, making your GraphQL queries lightning-fast across distributed systems.
Write Less Code. Fetch Data Smarter. Scale Effortlessly.
Why FxMap.HotChocolate?
Effortless Data Mapping -- Leverage FxMap's FluentAPI-based Data Mapping to simplify GraphQL queries. Seamless Integration -- Works out-of-the-box with HotChocolate and FxMap. Blazing Fast Queries -- Optimized data retrieval for high-performance systems. Scalable & Flexible -- Works across distributed environments with multiple transport layers.
Installation
To install the FxMap.HotChocolate package, use the following NuGet command:
dotnet add package FxMap.HotChocolate
Or via the NuGet Package Manager:
Install-Package FxMap.HotChocolate
How to Use
1. Register FxMap.HotChocolate
Add FxMap.HotChocolate to your service configuration during application startup:
var registerBuilder = builder.Services.AddGraphQLServer()
.AddQueryType<Query>();
builder.Services.AddFxMap(cfg =>
{
cfg.AddEntitiesFromAssemblyContaining<SomeEntityAssemblyMarker>();
cfg.AddProfilesFromAssemblyContaining<SomeProfileAssemblyMarker>();
cfg.AddNats(config => config.Url("nats://localhost:4222"));
})
.AddHotChocolate(cfg => cfg.AddRequestExecutorBuilder(registerBuilder));
...
var app = builder.Build();
app.Run();
Note: FxMap.HotChocolate will dynamically create the ObjectTypeExtension<T> for ResponseType. So If you want to create ObjectType for some object e.g: UserResponse,
please use ObjectTypeExtension<T> instead of ObjectType<T>.
That All, enjoy your moment!
| Package Name | Description | .NET Version | Document |
|---|---|---|---|
| Core | |||
| FxMap | FxMap core | 8.0, 9.0 | ReadMe |
| Data Providers | |||
| FxMap.EntityFrameworkCore | FxMap extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe |
| FxMap.MongoDb | FxMap extension package using MongoDb to fetch data | 8.0, 9.0 | ReadMe |
| Integrations | |||
| FxMap.HotChocolate | FxMap.HotChocolate is an integration package with HotChocolate for FxMap. | 8.0, 9.0 | This Document |
| Transports | |||
| FxMap.Grpc | FxMap.Grpc is an extension package for FxMap that leverages gRPC for efficient data transportation. | 8.0, 9.0 | ReadMe |
| FxMap.Kafka | FxMap.Kafka is an extension package for FxMap that leverages Kafka for efficient data transportation. | 8.0, 9.0 | ReadMe |
| FxMap.Nats | FxMap.Nats is an extension package for FxMap that leverages Nats for efficient data transportation. | 8.0, 9.0 | ReadMe |
| FxMap.RabbitMq | FxMap.RabbitMq is an extension package for FxMap that leverages RabbitMq for efficient data transportation. | 8.0, 9.0 | 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 was computed. 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. |
-
net8.0
- FxMap (>= 1.0.0)
- HotChocolate.AspNetCore (>= 15.1.1)
-
net9.0
- FxMap (>= 1.0.0)
- 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.