Questions tagged [hotchocolate]

Hot Chocolate is an open-source .NET GraphQL server platform developed by ChilliCream. Use this tag for questions about code written using Hot Chocolate or for queries concerning the official documentation.

393 questions
1
vote
1 answer

What is the syntax for a Url/Uri in GraphQL HotChocolate?

I'm writing a GraphQL query with a parameter that has a type of Uri in C#. When entering a value of "http://dotnetperls.com/" it tells me the type is wrong. Does anyone know what format this should be in to conform with GraphQL?
Tristan Trainer
  • 2,770
  • 2
  • 17
  • 33
1
vote
1 answer

I want to use subscription in GraphQL with .net framework 4.62 Is is possible with hotchocolate package?

I saw that in GraphQL .NET the subscription is not working. Only with .NET core. Do you know if it possible with hotchocolate package of graphQL? I didn't find anything specific on it.
Michal Asaf Carmeli
  • 2,158
  • 2
  • 15
  • 9
1
vote
1 answer

How do I enable Apollo Tracing with Hot Chocolate for a particular query request?

Sometimes I would like to be able to enable Apollo Tracing for a very specific query request because this particular request is slow for instance. Is there a way to do this with Hot Chocolate? And if yes, how would I tell a specific query request…
Rafael Staib
  • 1,226
  • 12
  • 14
0
votes
1 answer

Why the following graphql schema does not compile with HotChocolate?

I'm trying to put together a more complex stuff than Getting started guide with HotChocolate and I hit a wall, and the documentation does not help. I have multiple questions: What I'm doing wrong here? I went through all the examples they have and…
AndrasCsanyi
  • 3,943
  • 8
  • 45
  • 77
0
votes
0 answers

Get list of subscribers with Chilli Creams Hotchocolate graphql

When using the in memory subscriptions for HotChocolate. Is it possible / how can I keep track of who is subscribed to a particular subscription? Is there an on connected event that I can hook into or something similar?
Jack
  • 2,891
  • 11
  • 48
  • 65
0
votes
1 answer

How can I implement a HotChocolate FieldResolver when the resolved value depends on another field?

I have the following code designed to apply a list of errors to resolved items by fetching the full list of errors from another service which that caches them for performance reasons: public class MyEntityExtensions : ObjectType { …
JRoughan
  • 1,635
  • 12
  • 32
0
votes
1 answer

C# Hotchocolate mutation without input param does not work

I have the following mutation type [MutationType] public static class FooMutation { public static async Task CreateFoo(CreateFooCommand request, [FromServices] ICommandBus commandBus) => await commandBus.Send(request); } I have the…
Andre
  • 652
  • 2
  • 7
  • 23
0
votes
0 answers

GraphQL Server - Addscoped (without explicitly specifying)

I am writing a graphql api using .net core+hot chocolate. I have to define all service names while creating graphql server. I have more than 20 service classes. Is there a generic way of specifying these services, I dont want to write 20 + lines of…
0
votes
0 answers

Apollo Router Managed Federation Random Handshake Error

I deployed Apollo Router helm chart version 1.18.0 configured with Managed Federation. I use Apollo Studio to automatically update the supergraph of Apollo Router. All subgraphs have an HTTPS url. Most requests complete successfully, but randomly we…
0
votes
0 answers

How to define GraphQL stitching schema path to use an array of values, rather than query one at a time

Let's say I have two GraphQL services, one that provides an inventory of all cars at a dealership, and another that lets me find the history of what a particular car sold for. My top level types would be: type Vehicle { vin: String } type…
0
votes
0 answers

Hot Chocolate: Using IResolverContext.ReportError and ExecutionEventListener for Excluding Errors from Response Array

In the context of hot chocolate, how can I utilize IResolverContext.ReportError and ExecutionEventListener to report an error without including it in the errors array within the response? I attempted to access the middleware context, but it seems…
James
  • 1
  • 1
0
votes
1 answer

Flutter getting HttpLinkParserException when running a graphql mutation

I am not sure how I can explain my issue clearly here. I have a graphql mutation inside of flutter which calls an .Net Api to upload a multipart file to Azure blob storage. Here is the bare bones .net api method - public async Task
Sumchans
  • 3,088
  • 6
  • 32
  • 59
0
votes
1 answer

Method 'get_AdHocMapper' does not have an implementation."

I'm trying to use HotChoclate to implement GraphQL Server but I get this error: { "errors": [ { "message": "Unexpected Execution Error", "locations": [ { "line": 2, "column": 3 } ], …
Mahmoud Moravej
  • 8,705
  • 6
  • 46
  • 65
0
votes
1 answer

GraphQL + BananaCakePop won't work in a Docker container

I'm creating a proof of concept with a GraphQL ASP.NET API and Hot Chocolate / BananaCakePop for web-based querying by local developers. It is just the most basic API at present with a single query point. I have the app running fine locally in VS…
James Drinkwater
  • 396
  • 5
  • 19
0
votes
0 answers

How to define unknown scalars for a stitched schema in HotChocolate

I want to stitched two schemas via HotChocolate. One of them is provided by a graphql-dotnet implementation. In that one there is the following definition: scalar DateOnly This causes the following error in the stitched graphql…
feffe
  • 73
  • 6