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…
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:…
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:…
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…
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…
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…
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…
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
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…
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…
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,…
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:
…
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…
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 :…
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…