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

Query Middleware #394

Merged
merged 26 commits into from
Dec 14, 2018
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
367dd91
Started breaking up the execution engine
michaelstaib Dec 9, 2018
25eeab2
Added more middlewares
michaelstaib Dec 9, 2018
3eb07d7
Started working on the new query executer
michaelstaib Dec 11, 2018
d9486de
Query execution builder
michaelstaib Dec 11, 2018
0ebf901
Added builder implementation
michaelstaib Dec 11, 2018
dfaf891
Fixed compile issues
michaelstaib Dec 11, 2018
0d41d9c
Fixed middleware issues
michaelstaib Dec 11, 2018
4ef3deb
Refactored validation rules to be extendable
michaelstaib Dec 12, 2018
eb62fda
Added support for custom validator rules
michaelstaib Dec 12, 2018
3202bf7
Moved tools to utilities
michaelstaib Dec 12, 2018
9888072
Reorganized files
michaelstaib Dec 12, 2018
12086ee
Added new execution extensions for schema
michaelstaib Dec 12, 2018
0176d0a
Added middleware tests
michaelstaib Dec 12, 2018
96b8258
Code cleanup
michaelstaib Dec 12, 2018
2b9862d
Updated the readme
michaelstaib Dec 12, 2018
9273e93
Started work on pagination
michaelstaib Dec 12, 2018
b8fcee6
Started writing paging tests
michaelstaib Dec 13, 2018
0ee79d5
Refinement
michaelstaib Dec 13, 2018
9d15eed
Added more paging tests
michaelstaib Dec 13, 2018
6499389
Added connection type tests
michaelstaib Dec 13, 2018
ea0609e
Fixed typo
michaelstaib Dec 13, 2018
d2d14a4
Fixed schema error
michaelstaib Dec 13, 2018
2ac52c2
added some tests
michaelstaib Dec 13, 2018
40be79e
Renamed test
michaelstaib Dec 13, 2018
31e593f
Added schema error tests
michaelstaib Dec 13, 2018
0529fef
Moved stitching prototype to separate assembly
michaelstaib Dec 14, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Code cleanup
  • Loading branch information
michaelstaib committed Dec 12, 2018
commit 96b8258b025ef4940995e80f163f451daccd59d8
12 changes: 7 additions & 5 deletions src/Core.Tests/Execution/ExecuteOperationMiddlewareTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace HotChocolate.Execution
{
public class ExecuteOperationMiddlewareTests
{

[Fact]
public async Task ExecuteOperationMiddleware_Mutation_ExecutedSerially()
{
Expand All @@ -37,14 +36,17 @@ public async Task ExecuteOperationMiddleware_Mutation_ExecutedSerially()
FileResource.Open("MutationExecutionQuery.graphql"));

OperationDefinitionNode operation = query.Definitions
.OfType<OperationDefinitionNode>().FirstOrDefault();
.OfType<OperationDefinitionNode>()
.FirstOrDefault();

var request = new QueryRequest("{ a }").ToReadOnly();

var context = new QueryContext(
schema, new EmptyServiceProvider(), request);
context.Document = query;
context.Operation = operation;
schema, new EmptyServiceProvider(), request)
{
Document = query,
Operation = operation
};

var middleware = new ExecuteOperationMiddleware(
c => Task.CompletedTask, null);
Expand Down