Skip to content
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

Migrate Neo4J to new selections #5179

Merged
merged 8 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace HotChocolate.Execution.Processing.Tasks;

internal sealed partial class ResolverTask
{
private readonly string s = Guid.NewGuid().ToString("N");

private async Task ExecuteAsync(CancellationToken cancellationToken)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ public async Task SubscribeToReview()

eventResult?.MatchSnapshot();
}

[Fact]
public async Task SubscribeToReview_WithInlineFragment()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override FieldMiddleware CreateExecutor<TEntityType>(NameString argumentN
IMiddlewareContext context)
{
Neo4JFilterVisitorContext? visitorContext = null;
IInputField argument = context.Field.Arguments[argumentName];
ArgumentValue argument = context.Selection.Arguments[argumentName];
IValueNode filter = context.ArgumentLiteral<IValueNode>(argumentName);

if (filter is not NullValueNode && argument.Type is IFilterInputType filterInput)
Expand Down Expand Up @@ -77,4 +77,4 @@ public override FieldMiddleware CreateExecutor<TEntityType>(NameString argumentN
}
}
}
}
}
4 changes: 2 additions & 2 deletions src/HotChocolate/Neo4J/src/Data/Sorting/Neo4JSortProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public override FieldMiddleware CreateExecutor<TEntityType>(NameString argumentN
FieldDelegate next,
IMiddlewareContext context)
{
IInputField argument = context.Field.Arguments[argumentName];
var argument = context.Selection.Arguments[argumentName];
IValueNode filter = context.ArgumentLiteral<IValueNode>(argumentName);

if (filter is not NullValueNode &&
Expand Down Expand Up @@ -78,4 +78,4 @@ public override FieldMiddleware CreateExecutor<TEntityType>(NameString argumentN
}
}
}
}
}