Tag: hotchocolate
-
HotChocolate GraphQL error when child-list is null
0 given this query { name, userList { firstName, lastName } } if userList (which is a list) is null for one object out of hundreds, I end up with this error Value cannot be null. (Parameter ‘source’). Shouldn’t the GraphQL engine detect the null and just ignore it? I’ve tried making the userList property…
-
Ignoring method in my object with HotChocolate GraphQL
0 I have a class that I expose with Hotchocolate and GraphQL. In this class I have some properties and a public method with the following signature : public Expression<Func<Parcelle, bool>> ToLambdaExpression() By default, Hot Chocolate picks up the public method and exposes them as fields in the graphql schema. I managed to ignore them…
-
GraphQL Hot Chocolate Stiching
0 I have 2 GraphQL servers + 1 that should stick them into one. I cannot get my head around the Stitching.graphql file and how it works. I tried the tutorials on the Hot Chocolate website and webinars but still no luck. Pokemon – is working on its own schema { query: PokemonQuery } type…
-
HotChocolate configure backend property for filter criteria
0 I have a project using HotChocolate and EFCore where I have the following entities: public class Entity { public int EntityId { get; set; } public string Name { get; set; } public string AuthorId { get; set; } } public class Author { public string AuthorId { get; set; } public string Name…
-
Getting error – localhost is currently unable to handle this request. HTTP ERROR 502 – GraphQL run on Visual Studio 2022 – Hotchocolate
0 I am trying to execute a simple default Graphql app on Visual studio 2022 on .net 6 and 7. When the app is executed from visual studio I get the error "localhost is currently unable to handle this request. HTTP ERROR 502". I’m using HotChololate.aspnetcore (13.5.1) App URL "https://localhost:64264/graphql" Note: I have graphql app…
-
GraphQL HotChocolate 13: Adding PaginationAmountType to be backwards compatible for old clients
0 I’m migrating a quite old GraphQL server (<10) to the latest version (13). It looks everything is working OK after doing the necessary changes. The only thing is that HotChocolate dropped the PaginationAmountType class. The queries done by clients of my service do not seem to be compatible anymore. As this is a critical…
-
How to set a dummy filter handler for an extending field in hotchocolate 12 graphql?
4 I have an extending property needs to be filterable, however it fetches the data from a different data source. That means the default filtering won’t work, as the query cannot be translated properly. I want to create a dummy filtertype handler, then apply the filter manually based on the query context. public class User…
-
How to use stored procedure in GraphQL using HotChocolate
0 I am currently working on a legacy application which is built on the .NET framework and uses a MySQL database. We are migrating the application to GraphQL and .NET Core. We need to use the existing stored procedures. Because, the useridDB-role is passed to the stored procedure to filter the data at the database…
-
Hotchocolate Graphql with Angular Apollo Code Gen
0 I’m trying to test out the apollo graphql codegen for angular. as such I created a net 5 server that hosts Grapqhl endpoint at https://localhost:8081/api/graphql/. It loads fine and no worries. I’ve then created a dummy angular project with apollo graphql in it and installed the code gen as per these two guides: https://www.graphql-code-generator.com/docs/getting-started/installation…