-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphql 5.3 #232
Graphql 5.3 #232
Conversation
This would also help resolve the NewtonsoftJson vulnerability for versions < 13.0.1 Currently this package references |
I advise to switch to STJ whenever possible. |
public override object Resolve(IResolveFieldContext context) | ||
{ | ||
return context.Source; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is critical for subscription support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @Shane32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These three changes should fix subscription support.
src/GraphQL.Conventions/Adapters/Resolvers/EventStreamResolver.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Shane Krueger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use this project, but I don't see any problems with merging this. I did read through each change. @sungam3r Do you want to review?
|
||
// ReSharper disable InconsistentNaming | ||
|
||
namespace Tests.Adapters.Engine.Types | ||
{ | ||
#region .NET Class | ||
public class JSON : ValueNode<IDictionary<string, object>> | ||
public class JSON : GraphQLValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI this test is completely wrong (not the fault of this PR). Deserializing a GraphQL request cannot possibly deserialize to a JSON
node. Rather, ParseLiteral
should be parsing a structured tree of objects and values into an Inputs
object or something, or interpreting a JSON string value stored as a string literal and deserializing it as an Inputs
object. Further, the ParseValue
method should probably just take the object and return it, as the GraphQL serializer should be deserializing variables into a structured map. It won't ever be a GraphQLValue
node of any kind. And ToAST
should convert the structured map into a tree of nodes.
LGTM – will let @sungam3r take a look as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use this project too. Merge as you see fit.
Upgrading to Graph QL 5.3 to use with the last version of Graph QL Server and dotnet 6.
I still have an issue in the Graph QL Subscription Sample Project if someone can help me have a look.
I couldn't find the issue (it runs but there is an exception on runtime when you update a field and have a subscription), I would need to dig dipper in Graph QL dotnet internals and all the reflection but I didn't have time.
Other things seems to work