I am getting some extra information within my graphql results.
Apart from the data and the end errors I am getting
document
operation
perf
extensions
so the result is getting quite bulky. The other think I've noticed is that the initial loading of…
We have a GraphQL api that runs on .Net Core. Since all queries are made to the /graphql endpoint we only get one operation "POST /graphql" on the performance page of Azure Application Insights while a REST API would have allowed Aplication Insights…
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 trying to configure GraphQL-dotnet authentication with IdentityServer 4, but failing to get the token validation working. In UI-playground, I'm using the Chrome ModHeader extension to add the auth header, but it seems like api not registering…
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'm using GraphQL on a .NET core website/controller. The schema is quite large, such that the constructor takes about a second to run. I couldn't have that kind of overhead on every request, so I created the schema as a singleton, shared between all…
I am setting up endpoints for 3 types (let's say Student, Classmate and Pet), where Student has many Classmates and many Pets.
I figured out 2 options:
the first is to create a FriendsInterface and have Classmate and Pet implement that interface…
In my project that uses graphql-dotnet, I unexpectedly started getting errors saying the DataLoader context was null:
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the…
I am currently learning graphql and I am not sure if I correctly understand how mutations are supposed to work, especially when combined with subscriptions.
I have a page with client details, that include a description and a list of software…
I´m learning how to use CustomScalar in graphql-dotnet.
I have a tinyint column in my table and from what I have read, I´m supposed to use byte on this column in C#. After research I found out that I need to create a ByteGraphType, but I´m having…
I am using a graphql-dotnet to build a graphql server in Net Core 2.2 Web API.
Schema description:
I have a ObjectGraphType like below
public class UserType
: ObjectGraphType
{
public UserType()
{
…
I updated the Route value from [Route("[controller]")] to [Route("api/graphql")] for the below mentioned GraphQLController.
[Route("api/graphql")]
public class GraphQLController : Controller
{
private readonly IDocumentExecuter…
I'm trying to implement a grahql-dotnet API. I'm running into some weird behavior when I try to pass a scoped object into my controller and the same object into some of my services used by the queries using dotnet core dependency injection.
It…
I am new to graphql and trying to implement Graphql with dot net core using graphql-dotnet library.
We do not have a dedicated database in this application. The high level flow of the application is
Front End(React)
(Calls) > GraphQlController…
Need some help here please ...
I'm looking at the example "graphql-dotnet/server" where the exposed objects contains just plain properties. But what if I need to resolve a property and get data from a repository, how can I get hold of the…