441 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Score of 4
0 answers
68 views
HotChocolate ISelection drops child collection JOINs in EF Core when projecting to a view model
I am hitting a wall combining HotChocolate's projection engine (ISelection) with Entity Framework Core when trying to project database entities into custom view models / DTOs.
Whenever I append ...
- reputation score 41
Score of 0
0 answers
78 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
}
}
...
- reputation score 2480
Score of 1
1 answer
129 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 ...
- reputation score 455
Score of 2
0 answers
108 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 ...
- reputation score 43
Score of 0
1 answer
128 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 ...
- reputation score 43
Score of 0
0 answers
40 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 ...
- reputation score 388
Score of 0
0 answers
85 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 ...
- reputation score 1
Score of 1
1 answer
116 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 ...
- reputation score 43
Score of 0
0 answers
106 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 ...
- reputation score 11
Score of 0
0 answers
20 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 ...
- reputation score 21846
Score of 0
0 answers
383 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.
...
- reputation score 55
Score of 2
1 answer
516 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]
[...
- reputation score 43
Score of 0
1 answer
320 views
The maximum allowed items per page were exceeded Cursor based pagination Graphql error
Here i am using Cursor based pagination for graphql with .NET(Strawberryshake and Hotchocolate) and it gives me this below error. Can anyone please help me to find out the solution for how can i ...
- reputation score 97
Score of 0
1 answer
160 views
How to Integrate Detailed Logging and Tracing for GraphQL in .NET/C# with Dynatrace?
I am using a .NET/C# implementation for GraphQL and I want to capture all logging and tracing information on Dynatrace. When a query or mutation fails, I understand that the response still returns a ...
Score of 0
1 answer
352 views
C# Hot Chocolate Parsing Query
We are currently building an ASP.NET Core 8 Web API that will get a big GraphQL request for our new website's homepage. Now that homepage needs to display information that then comes from various ...
- reputation score 2761