Questions tagged [graphql-dotnet]

Use for the GraphQL .NET project.

Tag for the GraphQL .NET project.

https://github.com/graphql-dotnet/graphql-dotnet

105 questions
1
vote
2 answers

GraphQL.NET: How to find the full field path using IValidationRule

using the documented RequiresAuthValidationRule implementation; https://github.com/graphql-dotnet/graphql-dotnet/blob/master/docs/learn.md There is an example of checking if a field has certain permission and if a user can access that…
Herb Stahl
  • 439
  • 1
  • 6
  • 23
1
vote
1 answer

GraphQL Query syntax error

am using this GraphQl nuget to achieve a general QUery at my system using the following code if (!string.IsNullOrEmpty(query)) { var urlDecode = HttpUtility.UrlDecode(query); var result = …
AMH
  • 6,363
  • 27
  • 84
  • 135
0
votes
0 answers

How to define GraphQL stitching schema path to use an array of values, rather than query one at a time

Let's say I have two GraphQL services, one that provides an inventory of all cars at a dealership, and another that lets me find the history of what a particular car sold for. My top level types would be: type Vehicle { vin: String } type…
0
votes
0 answers

How do I filter by just day in dateTime type .net using graphQL?

*{ clicks( where: { id: { eq: 1 } date: {day: {eq : 25}} } ) { id, date } }* I'm trying to get all clicks which where the day is equal to 25 (date is datetime…
0
votes
1 answer

graphql-dotnet/parser - Getting the field types to string from an ASTNode

Ok, so I've been at this for hours and exshausted all of the documentation I could lay eyes on without an answer. The ASTNode resulting from parsing a graphql schema using graphql-dotnet/parser has field properties. In previous releases of the…
0
votes
0 answers

GraphQL .NET Mutations with Nested InputObjectGraphType

Within GraphQL-Dotnet i have a mutation with a list type input type, and within that type, i have a list of items, which themselves are an input type. I have defined the mutation and the resolver for the mutation to be: …
bizzehdee
  • 20,289
  • 11
  • 46
  • 76
0
votes
0 answers

Trying to customize date filter in GraphQL API call using C# and ASP.NET Core

How can I extend my date type filter or override my date type filer in C# with ASP.NET Core? API call is coming to GraphQL. I am able to achieve string type filter but not able to find anything related to dates type
Coder
  • 240
  • 2
  • 4
  • 20
0
votes
1 answer

How to deserialize Graphql Response

Hi I have a graphql Response after Mutating {{ "carCreate": { "car": { "id": "TestId" } } }} I want to Desealize it I am using The following Code var graphQlClient = new GraphQLHttpClient(AppConfig.GraphQlUrl, new…
0
votes
1 answer

How to specify the graphql context (database) in c#?

So, I'm following this GraphQL tutorial and in it we have the code below and I would like to know how, in NotesMutation, can I use another DB connection in "resolve: context", because I have created another one without Entity…
0
votes
2 answers

GraphQL.Net List of int as argument

I am trying to build an application using .Net and GraphQL. I need to get materials. not all of them but with the given Ids. When I pass it via playground or client side, I don't have any problem when I debug but I am not sure how to parse in the…
0
votes
1 answer

GraphQL .NET parallel execution strategy doesn't fully run in parallel

I have a graphQL query where I have 10 parallel queries + 2 properties on the second level. This results in 12 queries (10 queries + 2 batched properties). { entries0(pageSize: 10) { id project { id } …
0
votes
1 answer

Sending multipart/form-data using GraphQL API in .NetCore

I'm trying to upload the user avatar of .png/jpeg/.jpg file types from angular client to .netCore server application using GraphQL API. I managed to send the image to be uploaded in a request of content type multipart/form-data from client-side. But…
0
votes
0 answers

C# not finding package with GraphQL

Following a tutorial at the moment to do with C# Azure functions and GraphQL. Having a little trouble with the Schema for the GraphQL Types. Here is my Model User class: public class User : Base { private User() { } public…
Yohan
  • 359
  • 1
  • 3
  • 12
0
votes
1 answer

How to convert AST to GraphQL

We need to rename the fields in the graphQL, so we get the AST of the GraphQL firstly, and modify it as we need. However, I can't find any solution to convert the AST back to the GraphQL. The parser I use is "GraphQL Dotnet Parser"
Charlie
  • 2,141
  • 3
  • 19
  • 35
0
votes
1 answer

Graphql without a server

I'd like to include an embedded graphql processor in my .net app. I want to execute GraphQL functions via a method and I don't need the server or an endpoint. Basically an internal GraphQL processor. I'll define the resolvers and the schema and then…
TeabagD
  • 569
  • 6
  • 17