When I'm serialising to JSON, I'm used to .NET dictionaries becoming objects with the keys as properties and the values as their values. (The Json.Net docs have a succinct example.)
I'm using GraphQL and struggling to achieve a similar result. My…
I need to integrate GraphQL in NetCoreApp 2.2 netcoreapp2.2 (I can't upgrade to NetCore 3 for other reasons).
PS. We have another project in .Net Core 3.1 and we can use…
Can I use graphql-dotnet without Entity Framework?
I'm currently looking at this repository https://github.com/mmacneil/fullstack-jobs, and noticed that it is using EF. And everywhere I look on the internet for examples, I can only find…
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 have a query with the field "statistics" which is a sub-query with three different accumulated values. I would like to be able to give statistics a country argument and then access that argument in the resolvers for the different fields in the…
I'm exploring GraphQL at the moment. In one of my ObjectGraphTypes I want to inject a service implementation which queries EF about some addition data.
public class RoomType : ObjectGraphType
{
public RoomType(IUserRepository…
I work on a ASP.NET Web API and have added support for GraphQL requests with GraphQL for .NET .
My queries are working as expected but I am now struggling to use the same logic with the mutations.
I have the following logic for my…
I am using graphql-dotnet and graphql-dotnet server with asp.net core. I have configured schema in following way.
public class PdsGraphQlSchema: Schema
{
public PdsGraphQlSchema()
{
FieldNameConverter = new…
Hello friends I want pass oauth_token and client_id in request body of a GraphQL Client. So how can I pass them, because GraphQLRequest has only three fields (i.e Query , Variables and OperationName). Please suggest.
using GraphQL.Client;
var…
I created a new .NET Core project and installed the packages GraphQL, GraphiQL and GraphQL.SystemTextJson.
When running the application this is what I get
Besides the exception message GraphiQL wasn't able to find a schema documentation.
First of…
I want to create a GraphQL API with .NET Core using the GraphQL and GraphiQL package. I created one query for users and one for tasks
public sealed class UserQuery : ObjectGraphType
{
private List users = new List();
public…
We are using the GraphQL client NuGet package (https://github.com/graphql-dotnet/graphql-client) and
in our .NET 4.7.2 solution, we are currently, calling an GraphQL API like this:
protected SomeService(ILogger logger, IGraphQLClient client)
{
…
Can anyone help me to get some sample code with examples regarding usage of AutoRegisteringObjectGraphType with asp.net core project? I did not find any concrete examples with documentation.
Any help on this is much appreciated.
I'm practicing with graphql-dotnet. I created a PropertyQuery as follows:
public class PropertyQuery : ObjectGraphType
{
public PropertyQuery(IPropertyRepository propertyRepository)
{
Field>(
…