446 questions
0
votes
0
answers
25
views
How do I get nested Hot Chocolate graphql data loaders to batch properly?
I have a graphQL query that looks like this:
query {
vehiclesByIds(ids: 1,2,3,4,5...) {
id
options {
optionId
name
adCopy {
copyType
copyText
}
}
...
1
vote
1
answer
75
views
GraphQL Queries with conditional nullable filters
I want to have a single query to take in a bool? Active parameter which could possibly be null.
Although, from experimenting I can either have a query which always excepts a value from Active OR just ...
0
votes
0
answers
55
views
Graphql Fusion with Dataloader
I have been using data loader with stitching queries in hotchocolate v13. I recently migrated to v15 and had to introduce Fusion as stitching is no longer supported.
After the upgrade, the batch data ...
0
votes
1
answer
51
views
Using Hotchocolate Persisted Operation along with Fusion
I upgraded hotchocolate from V13 to V15 and realized that the query stitching is no longer supported and need to use Fusion package.
I am following these steps and everything is fine except that I am ...
0
votes
0
answers
24
views
Hotchocolate 13.x add a non-selected property
I have a situation where I need a field to be used in a calculated one but if the api client/user does not include that field is never selected from the database and for that reason the calculated ...
0
votes
0
answers
45
views
I can't create my custom filter in HotChocolate 13.5.0, where can I view detailed documentation or code examples?
I'm trying to create my own filter for a specific type of data in hotchocolate.
I created a class from FilterInputType<MyType> and specified an additional field for filtering in it. For this ...
0
votes
0
answers
58
views
Hot Chocolate GraphQL Subscription Provider RabbitMQ not connecting
I am using the Hot Chocolate GraphQl library to do real time pub/sub messaging, this works if i create the RabbitMQ connection and channel without using the Hot Chocolate library using the same .Net ...
1
vote
1
answer
88
views
HotChocolate [UseSorting] / [UseFiltering] LinQ conflict with ValueObject
Using HotChocolate v15.1.8 with EF v9.0.7 and Mapster v7.4.0, I encounter a bug with [UseSorting] / [UseFiltering] LinQ conversions which appear invalid when applied to DDD ValueObject or EF complex ...
0
votes
0
answers
72
views
Join two subgraphs using Graphql Fusion
I am trying to get result when I query like below in fusion gateway, basically join of Product and Review like for each product get the review details for each product,I know Fusion is in .Net but I ...
0
votes
0
answers
28
views
Subscriptions in Hotchocolate
I am trying to understand the mechanics of Hotchocolate Subscription mechanism.
So assume the scenario where i have car, and garage entities.
Garage can have 0->N Cars.
As a user that logs into ...
0
votes
0
answers
14
views
How do I configure HotChocolate to generate non-nullable result in payload generated by convention?
I have a mutation method implemented as follows:
public async Task<Project> ChangeProjectStatus(
Guid projectId,
ProjectStatus status
) {
return ...<non-null ...
0
votes
0
answers
75
views
YARP: How do I dynamically replace Location-Header when the actual server sends an absolute uri?
I have two api's I want to "connect" via a YARP-gateway. Those apis are routed via the path, so that '/api1/somecontroller' is routed to 'http://localhost:1234/somecontroller'.
In both of ...
0
votes
0
answers
234
views
In HotChocolate 15, how to use projection and data loader for many to many relationship?
I'm using Hotchocolate v15, EF Core. For 1:m relationship, I'm using dataloader and projection to just fetch selected fields for child items. It work as expected, for example: load products by branch.
...
2
votes
1
answer
297
views
Hot Chocolate cursor pagination seems to behave like offset pagination — am I missing something?
I'm using cursor-based pagination with Hot Chocolate v15 (GraphQL) and have configured my pagination like this:
[GraphQLDescription("Returns a list of paginated questions")]
[UsePaging]
[...
0
votes
0
answers
42
views
Access FunctionContext.Items inside GraphQL resolver with HotChocolate.AzureFunctions.IsolatedProcess?
How to access FunctionContext.Items inside GraphQL resolver with HotChocolate.AzureFunctions.IsolatedProcess?
Environment: .NET 8.0
Azure Functions Isolated Worker
HotChocolate.AzureFunctions....