Summary
I am currently migrating a project to AspNetCore 3.0 and are running into a issue with the GraphQL for .NET ParallelExecutionStrategy when querying for multiple things in one query. The project is using a MSSQL Server as the data store and…
I am building an API that allows you to fetch a hierarchical object tree in GraphQL. These objects are not in a data store but come from some upstream API. For example;
public class Employee
{
public int Id { get; set; }
public string…
I am just starting in GraphQL (with .NET, but I don't think that matters here). I have learned how to pass variables that are properties of the type I am querying, but I am not sure how to pass variables that are NOT properties.
For example, I have…
I've just started developing a graphQL API using graphql-dotnet.
I've searched through the documentation but I couldn't find anything on what to do if a record is not found for given arguments. The reference implementations I checked (github,…
I'm building GraphQL API in Asp.Net Core 2.2 using GraphQL.Net 2.4.0
I've created Controller to handle GraphQL Queries:
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
public class GraphQLController : Controller
{
…
I am using graphql-dotnet and populated schema based on different types (loaded from assembly). Now I would like to add new types to an existing schema without restarting the application server. Is that possible?
I'm using GraphQL.Net and getting the following when trying to use the API.
{
"version": {
"major": 1,
"minor": 1,
"build": -1,
"revision": -1,
"majorRevision": -1,
"minorRevision": -1
},
"content": {
"headers": [
…
Here is the code that I am using to fetch ByteArrayContent type:
public class ImageDTO : APIResult
{
public byte[] ImageData
{
get;
set;
}
public string ImageFormat
{
get;
set;
}
public…
I have REST API (api/tax/v1/countries) with the following response. In the below the pngimagePath and svgimagePath properties are pointing to the image type endpoints(api/tax/v1/country/Country1/{FlagPNG or FlagSVG})
The paths are generated…
I am new in Graphql and using graphql-dotnet in my asp.net core project.
Consider I have written a query like following.
restaurants {
id
name
}
Now I want to get this field names from ResolveFieldContext. Is there any way to get this…
I am trying to upload an image file with graphql-dotnet, but it is never successful.
I am taking file object in my GraphQLController:
var files = this.Request.Form.Files;
var executionOptions = new ExecutionOptions
{
Schema = _schema,
…
Currently I am working on GraphQl-dotnet, i was able to create graphql server, now i want to connect the server to my front end, React Application, I tried with Apollo i could not do it can any one help me on it .
Based on an example from graphql-dotnet :
public class Droid
{
public string Id { get; set; }
public string Name { get; set; }
}
public class Query
{
[GraphQLMetadata("hero")]
public Droid GetHero()
{
return new Droid {…
I have a problem with GraphQL.Net library. I've used "GraphQL" Version="3.2.0", "GraphQL.Server.Ui.Playground" Version="4.4.0" and TargetFramework = netcoreapp3.0
I'm trying to see how it works and I created a simple class:
public class Temp
{
…
I'm getting this error using dotnet's bindings for Graphql, what may it be the cause?
GraphQL.ExecutionError: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an…