Skip to content

Commit

Permalink
rename to executable
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Oct 16, 2020
1 parent 3ca2178 commit b902c2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/HotChocolate/Core/src/Abstractions/IExecutable.cs
Expand Up @@ -3,7 +3,7 @@

namespace HotChocolate
{
public interface IQuery
public interface IExecutable
{
ValueTask<object> ExecuteAsync(CancellationToken cancellationToken);

Expand Down
Expand Up @@ -66,7 +66,7 @@ private async ValueTask ExecuteResolverPipelineAsync()

switch (_context.Result)
{
case HotChocolate.IQuery query:
case IExecutable query:
_context.Result = await query.ExecuteAsync(_context.RequestAborted);
break;

Expand Down
Expand Up @@ -167,7 +167,7 @@ public static bool IsSupportedCollectionInterface(Type type)
|| typeDefinition == typeof(ImmutableQueue<>)
|| typeDefinition == typeof(ImmutableStack<>)
|| typeDefinition == typeof(ImmutableHashSet<>)
|| typeDefinition == typeof(IQuery<>))
|| typeDefinition == typeof(IExecutable<>))
{
return true;
}
Expand Down

0 comments on commit b902c2a

Please sign in to comment.