Shane Krueger
Shane Krueger
I'm also having difficulty finding what `app.UseGraphQLAuth();` does. Is this also part of your code?
It is unlikely that will help. `options.AddNewtonsoftJson` already sets those options by default. https://github.com/graphql-dotnet/graphql-dotnet/blob/master/src/GraphQL.NewtonsoftJson/JsonSerializerSettings.cs
> Can you provide the stack trace for the error you're receiving? Also the definition of the `jobInput` argument and the code that defines the `startDate` and `endDate` fields. I'll...
My comment about date parsing is really only applicable when you're using NewtonsoftJson directly, such as through custom middleware or a MVC endpoint. But in your case you are using...
I'd also suggest switching to the SystemTextJson serializer, which is natively async, but it should work identical either way.
Are there graph types defined for these fields? Or using AutoRegisteringInputObjectGraphType?
are they using DateTimeGraphType or DateGraphType ?
Ok then that's your problem. In GraphQL.NET v4 (?) and newer, `DateTimeGraphType` requires date/time values in ISO-8601 format such as: - `2023-10-14T12:34:56Z` or - `2023-10-14T12:34:56.789-05:00` It will parse those values...
> we are getting error in this now,when we are sending in this casetype '"json" it is throwing error,please guide me. outputFormatType: json "Argument 'jobInput' has invalid value. In field...
> > and we are getting this error if you have any idea to how to resolve > > issue resolved. Both issues? The first issue is because ExecutionResult.Data contains...