OfX-HotChocolate
8.2.6
dotnet add package OfX-HotChocolate --version 8.2.6
NuGet\Install-Package OfX-HotChocolate -Version 8.2.6
<PackageReference Include="OfX-HotChocolate" Version="8.2.6" />
<PackageVersion Include="OfX-HotChocolate" Version="8.2.6" />
<PackageReference Include="OfX-HotChocolate" />
paket add OfX-HotChocolate --version 8.2.6
#r "nuget: OfX-HotChocolate, 8.2.6"
#:package OfX-HotChocolate@8.2.6
#addin nuget:?package=OfX-HotChocolate&version=8.2.6
#tool nuget:?package=OfX-HotChocolate&version=8.2.6
OfX-HotChocolate
OfX-HotChocolate is an integration package that seamlessly connects OfX with the HotChocolate GraphQL library (Hot Chocolate Docs).
With OfX-HotChocolate, you get high-performance, attribute-based data mapping, making your GraphQL queries lightning-fast across distributed systems.
🔥 Write Less Code. Fetch Data Smarter. Scale Effortlessly. 🔥
🎯 Why OfX-HotChocolate?
Effortless Data Mapping – Leverage OfX’s Attribute-based Data Mapping to simplify GraphQL queries.
Seamless Integration – Works out-of-the-box with HotChocolate and OfX.
Blazing Fast Queries – Optimized data retrieval for high-performance systems.
Scalable & Flexible – Works across distributed environments with multiple transport layers.
Installation
To install the OfX-HotChocolate package, use the following NuGet command:
dotnet add package OfX-HotChocolate
Or via the NuGet Package Manager:
Install-Package OfX-HotChocolate
How to Use
1. Register OfX-HotChocolate
Add OfX-HotChocolate to your service configuration during application startup:
var registerBuilder = builder.Services.AddGraphQLServer()
.AddQueryType<Query>();
builder.Services.AddOfX(cfg =>
{
cfg.AddContractsContainNamespaces(typeof(SomeContractAssemblyMarker).Assembly);
cfg.AddNats(config => config.Url("nats://localhost:4222"));
})
.AddHotChocolate(cfg => cfg.AddRequestExecutorBuilder(registerBuilder));
...
var app = builder.Build();
app.Run();
Note: OfX-HotChocolate will dynamic 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 | |||
| OfX | OfX core | 8.0, 9.0 | ReadMe |
| Data Providers | |||
| OfX-EFCore | This is the OfX extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe |
| OfX-MongoDb | This is the OfX extension package using MongoDb to fetch data | 8.0, 9.0 | ReadMe |
| Integrations | |||
| OfX-HotChocolate | OfX.HotChocolate is an integration package with HotChocolate for OfX. | 8.0, 9.0 | This Document |
| Transports | |||
| OfX-gRPC | OfX.gRPC is an extension package for OfX that leverages gRPC for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-Kafka | OfX-Kafka is an extension package for OfX that leverages Kafka for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-Nats | OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. | 8.0, 9.0 | This Document |
| OfX-RabbitMq | OfX-RabbitMq is an extension package for OfX 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
- HotChocolate.AspNetCore (>= 15.1.1)
- OfX (>= 8.2.6)
-
net9.0
- HotChocolate.AspNetCore (>= 15.1.1)
- OfX (>= 8.2.6)
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 | |
|---|---|---|---|
| 8.2.6 | 101 | 1/28/2026 | |
| 8.2.5 | 98 | 1/24/2026 | |
| 8.2.4 | 580 | 1/19/2026 | |
| 8.2.3 | 92 | 1/18/2026 | |
| 8.2.2 | 192 | 1/18/2026 | |
| 8.2.1 | 101 | 1/17/2026 | |
| 8.2.0 | 90 | 1/17/2026 | |
| 8.1.2 | 153 | 1/13/2026 | |
| 8.1.1 | 91 | 1/13/2026 | |
| 8.1.0 | 90 | 1/11/2026 | |
| 8.0.0 | 260 | 1/3/2026 | |
| 7.2.2 | 333 | 12/18/2025 | |
| 7.2.1 | 616 | 12/1/2025 | |
| 7.2.0 | 412 | 11/18/2025 | |
| 7.2.0-preview | 399 | 11/18/2025 | |
| 7.1.10 | 196 | 10/20/2025 | |
| 7.1.9 | 178 | 10/17/2025 | |
| 7.1.8 | 191 | 10/15/2025 | |
| 7.1.7 | 194 | 10/15/2025 | |
| 7.1.6 | 194 | 10/7/2025 | |
| 7.1.5 | 182 | 10/5/2025 | |
| 7.1.4 | 192 | 9/24/2025 | |
| 7.1.3 | 195 | 9/23/2025 | |
| 7.1.2 | 199 | 9/23/2025 | |
| 7.1.1 | 241 | 8/28/2025 | |
| 7.1.0 | 189 | 8/13/2025 | |
| 7.0.6 | 262 | 8/7/2025 | |
| 7.0.5 | 280 | 8/6/2025 | |
| 7.0.4 | 210 | 8/4/2025 | |
| 7.0.3 | 153 | 7/4/2025 | |
| 7.0.2 | 236 | 6/19/2025 | |
| 7.0.1 | 193 | 6/19/2025 | |
| 7.0.0 | 284 | 6/9/2025 | |
| 6.0.2 | 315 | 5/26/2025 | |
| 6.0.1 | 204 | 5/25/2025 | |
| 6.0.0 | 198 | 5/20/2025 | |
| 6.0.0-beta1 | 210 | 5/20/2025 | |
| 5.0.22 | 235 | 5/5/2025 | |
| 5.0.21 | 178 | 4/26/2025 | |
| 5.0.20 | 143 | 4/26/2025 | |
| 5.0.19 | 292 | 4/22/2025 | |
| 5.0.18 | 295 | 4/13/2025 | |
| 5.0.17 | 501 | 3/23/2025 | |
| 5.0.16 | 289 | 3/18/2025 | |
| 5.0.16-v15 | 210 | 3/20/2025 | |
| 5.0.15 | 205 | 3/17/2025 | |
| 5.0.14 | 303 | 3/17/2025 |