Questions tagged [graphql.net]

Github repository and other source can be found at ... https://graphql-dotnet.github.io/docs/getting-started/introduction

Official documentation for the project can be found at ... https://github.com/graphql-dotnet/graphql-dotnet

31 questions
4
votes
1 answer

How does one organize more than a few mutations in GraphQL .Net GraphType First?

In GraphQL .Net most of the example code has one top level mutations graph object that has many actual mutations defined within it. Here's an example from the GraphQL .NET mutations page: public class StarWarsSchema : Schema { public…
Mark Rogers
  • 96,497
  • 18
  • 85
  • 138
3
votes
0 answers

GraphQL json parser and AllowSynchronousIO

I'm starting to implement GraphQA in .NET with https://github.com/graphql-dotnet/server, I wrote a very simple sample application and while running Graphiql I got the following error: fail:…
developer82
  • 13,237
  • 21
  • 88
  • 153
3
votes
2 answers

An unhandled exception of type 'System.AggregateException' occurred in Microsoft.Extensions.DependencyInjection.dll:

I migrated a asp.net core project from version 2.2 to 3.1. I have added all the dependencies and docker related components. It is compiling fine but on running the project I am getting the below mentioned error: Exception thrown:…
2
votes
0 answers

GraphQL.NET Subscriptions not returning anything

I have problem with GraphQL.NET and Subscriptions and would like to hear your input. I am trying to run the following query on https://localhost:5001/graphql subscription calcRunStatus{ calcRunStatus { billingMonth calcRunStatus…
nino
  • 841
  • 1
  • 14
  • 30
2
votes
2 answers

Maximum number of retries (6) exceeded while executing database operations with 'CosmosExecutionStrategy'

I am working on API development project using ASP.NET Core 2.2, GraphQL.NET , CosmosDB, Entity Framework Core (Microsoft.EntityFrameworkCore.Cosmos v2.2.4). While testing the API method which pulls the data from AzureComosDB, sometime I get this…
2
votes
1 answer

Problem with introspection of GraphQL ASP.NET Core Web API Controller

I can't see the schema of my GraphQL Graph. The introspection is not working when I use Web API GraphQL Controller as endpoint. I've currently tried with GraphiQl and the UI.Playground library [Route("graphql")] [ApiController] public class…
Stefan PEev
  • 481
  • 5
  • 17
1
vote
0 answers

How to do Projection in "GraphQL.Net"?

I have problem with using GraphQL.Net, and that is what I need. I specify four fields in aType Class, when I try to fetch only two fields with a query on GraphQL, the executing query on database contains all four fields that defined in Type class…
1
vote
1 answer

GraphQL.Net v5 and .Net 6 Installation

Has anyone successfully implemented GraphQL.NET v5 in .NET 6 and been able to register in Program.cs as there is no Startup.cs? There are breaking changes from V4. This is the message I get after upgrade to v5 regards, Olafur
1
vote
1 answer

GraphQL Client is retuning null data in C#

I have a query defined at server side as public TradeQuery(ITradeService tradeservice) { Name = nameof(TradeQuery); Field>("trades", resolve: r => { return tradeservice.GetTrades(); }); } when I call…
Oxygen
  • 831
  • 4
  • 17
  • 42
1
vote
1 answer

GraphQL .NET - extensions in results

I'm starting out with GraphQL for .NET Core 3.1 (https://github.com/graphql-dotnet/graphql-dotnet). I have built a simple example from what I have seen online (not a lot of information out there yet about it). When I do a query I get a result like…
developer82
  • 13,237
  • 21
  • 88
  • 153
1
vote
1 answer

How to group GraphQL query result with individual key as array

I'm using GraphQL with .NET Core. I have query like below. As I'm new in GraphQL.NET, I can't understand how to group individual key as array. `{ readingQuery{ readingsDBFilter(buildingId: 30, objectId: 1, datafieldId: 1,…
Saiful Islam
  • 186
  • 1
  • 3
  • 13
1
vote
2 answers

GraphQL.Net - prevent null data on mutation exception

Using GraphQL.NET, I've defined a non nullable return type (e.g. LoginPayload) for a mutation like this: type MyMutation { login(input: LoginInput!): LoginPayload! } In C#, it looks something like this: …
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
1
vote
1 answer

GraphQL.NET dynamic field type

I'm trying to add an object to my GraphQL.NET model, but I'm having a problem with one of the fields. The original class is public class ShowCriterion { public string RelatedEntity { get; set; } public object MatchValue { get; set; } } This…
David784
  • 7,031
  • 2
  • 22
  • 29
1
vote
1 answer

Response compression in asp.net core 2.2 not working

I am using asp.net core 2.2, Microsoft.EntityFrameworkCore(2.2.4), Microsoft.EntityFrameworkCore.Cosmos(2.2.4), GraphQL.NET to develop graphql based APIs. Based on the link :…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
1
vote
2 answers

System.Net.WebException: The remote server returned an error: (429) Too Many Requests

I am working on API development project using ASP.NET Core 2.2, GraphQL.NET , CosmosDB, EntityFrameworkCore (Microsoft.EntityFrameworkCore.Cosmos(2.2.4). On running the solution, I see an error in the output window of the…
1
2 3