diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/DefaultValueTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/DefaultValueTests.cs index 706bc83d70b..77425f8c9a7 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/DefaultValueTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/DefaultValueTests.cs @@ -41,12 +41,12 @@ public void DefaultValueTests_Simple() .AddQueryType() .AddMutationType(); - ServiceProvider serviceProvider = services.BuildServiceProvider(); - IRequestExecutorResolver executorResolver = serviceProvider.GetRequiredService(); - IRequestExecutor executor = executorResolver.GetRequestExecutorAsync().Result; + var serviceProvider = services.BuildServiceProvider(); + var executorResolver = serviceProvider.GetRequiredService(); + var executor = executorResolver.GetRequestExecutorAsync().Result; // Act - IExecutionResult result = executor.ExecuteAsync("mutation{ doSomething(input: { }) { result } }").Result; + var result = executor.ExecuteAsync("mutation{ doSomething(input: { }) { result } }").Result; // Extract the data from the result var jsonResult = result.ToJson(); diff --git a/src/HotChocolate/Core/src/Abstractions/Error.cs b/src/HotChocolate/Core/src/Abstractions/Error.cs index 9221a527b96..3d07709642a 100644 --- a/src/HotChocolate/Core/src/Abstractions/Error.cs +++ b/src/HotChocolate/Core/src/Abstractions/Error.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using HotChocolate.Execution; -using HotChocolate.Language; using HotChocolate.Properties; namespace HotChocolate; @@ -22,8 +21,7 @@ public Error( Path? path = null, IReadOnlyList? locations = null, IReadOnlyDictionary? extensions = null, - Exception? exception = null, - ISyntaxNode? syntaxNode = null) + Exception? exception = null) { if (string.IsNullOrEmpty(message)) { @@ -38,7 +36,6 @@ public Error( Locations = locations; Extensions = extensions; Exception = exception; - SyntaxNode = syntaxNode; if (code is not null) { @@ -70,11 +67,6 @@ public Error( /// public Exception? Exception { get; } - - /// - /// Gets the syntax node that caused the error. - /// - public ISyntaxNode? SyntaxNode { get; } /// public IError WithMessage(string message) @@ -205,5 +197,5 @@ public IError WithException(Exception? exception) /// public IError RemoveException() - => new Error(Message, Code, Path, Locations, Extensions, syntaxNode: SyntaxNode); + => new Error(Message, Code, Path, Locations, Extensions); } diff --git a/src/HotChocolate/Core/src/Abstractions/ErrorBuilder.cs b/src/HotChocolate/Core/src/Abstractions/ErrorBuilder.cs index 2e28ebf8aab..d5f857c5126 100644 --- a/src/HotChocolate/Core/src/Abstractions/ErrorBuilder.cs +++ b/src/HotChocolate/Core/src/Abstractions/ErrorBuilder.cs @@ -5,8 +5,6 @@ using HotChocolate.Language; using HotChocolate.Properties; -#nullable enable - namespace HotChocolate; public class ErrorBuilder : IErrorBuilder @@ -19,7 +17,6 @@ public class ErrorBuilder : IErrorBuilder private List? _locations; private bool _dirtyLocation; private bool _dirtyExtensions; - private ISyntaxNode? _syntaxNode; public ErrorBuilder() { @@ -37,12 +34,12 @@ private ErrorBuilder(IError error) _path = error.Path; _exception = error.Exception; - if (error.Extensions is { } && error.Extensions.Count > 0) + if (error.Extensions is { Count: > 0 }) { _extensions = new OrderedDictionary(error.Extensions); } - if (error.Locations is { } && error.Locations.Count > 0) + if (error.Locations is { Count: > 0 }) { _locations = [..error.Locations,]; } @@ -100,7 +97,7 @@ public IErrorBuilder RemovePath() public IErrorBuilder AddLocation(Location location) { - if (_dirtyLocation && _locations is { }) + if (_dirtyLocation && _locations is not null) { _locations = [.._locations,]; _dirtyLocation = false; @@ -113,9 +110,23 @@ public IErrorBuilder AddLocation(Location location) public IErrorBuilder AddLocation(int line, int column) => AddLocation(new Location(line, column)); - public IErrorBuilder SetSyntaxNode(ISyntaxNode? syntaxNode) + public IErrorBuilder AddLocation(IReadOnlyList? syntaxNodes) where T : ISyntaxNode { - _syntaxNode = syntaxNode; + if (syntaxNodes is null) + { + _locations = null; + _dirtyLocation = false; + return this; + } + + foreach (var syntaxNode in syntaxNodes) + { + if (syntaxNode.Location is { } location) + { + AddLocation(location.Line, location.Column); + } + } + return this; } @@ -203,8 +214,7 @@ public IError Build() _path, _locations, _extensions, - _exception, - _syntaxNode); + _exception); } public static ErrorBuilder New() => new(); diff --git a/src/HotChocolate/Core/src/Abstractions/ErrorBuilderExtensions.cs b/src/HotChocolate/Core/src/Abstractions/ErrorBuilderExtensions.cs index 7b58e82c01d..593b10bf53e 100644 --- a/src/HotChocolate/Core/src/Abstractions/ErrorBuilderExtensions.cs +++ b/src/HotChocolate/Core/src/Abstractions/ErrorBuilderExtensions.cs @@ -1,43 +1,9 @@ -using System; using System.Globalization; -using HotChocolate.Language; - -#nullable enable namespace HotChocolate; public static class ErrorBuilderExtensions { - public static IErrorBuilder AddLocation( - this IErrorBuilder builder, - ISyntaxNode? syntaxNode) - { - if (builder is null) - { - throw new ArgumentNullException(nameof(builder)); - } - - if (syntaxNode is { Location: not null, }) - { - builder.SetSyntaxNode(syntaxNode); - - if (syntaxNode.Location is not null) - { - return builder.AddLocation( - syntaxNode.Location.Line, - syntaxNode.Location.Column); - } - } - - return builder; - } - - public static IErrorBuilder SetMessage( - this IErrorBuilder builder, - string format, - params object[] args) => - builder.SetMessage(string.Format( - CultureInfo.InvariantCulture, - format, - args)); + public static IErrorBuilder SetMessage(this IErrorBuilder builder, string format, params object[] args) + => builder.SetMessage(string.Format(CultureInfo.InvariantCulture, format, args)); } diff --git a/src/HotChocolate/Core/src/Abstractions/ErrorExtensions.cs b/src/HotChocolate/Core/src/Abstractions/ErrorExtensions.cs deleted file mode 100644 index 940e234e825..00000000000 --- a/src/HotChocolate/Core/src/Abstractions/ErrorExtensions.cs +++ /dev/null @@ -1,50 +0,0 @@ -using HotChocolate.Language; - -#nullable enable -namespace HotChocolate; - -/// -/// Common extensions of -/// -public static class ErrorExtensions -{ - /// - /// Creates a new error that contains all properties of this error - /// but removed the syntax node from it. - /// - /// The error this extension method applies to - /// - /// Returns a new error that contains all properties of this error - /// but without any syntax node details. - /// - public static IError RemoveSyntaxNode(this IError error) - => new Error( - error.Message, - error.Code, - error.Path, - error.Locations, - error.Extensions, - error.Exception); - - /// - /// Creates a new error that contains all properties of this error - /// but with the specified . - /// - /// The error this extension method applies to - /// - /// The .net syntaxNode that caused this error. - /// - /// - /// Returns a new error that contains all properties of this error - /// but with the specified . - /// - public static IError WithSyntaxNode(this IError error, ISyntaxNode? syntaxNode) - => new Error( - error.Message, - error.Code, - error.Path, - error.Locations, - error.Extensions, - error.Exception, - syntaxNode); -} diff --git a/src/HotChocolate/Core/src/Abstractions/IError.cs b/src/HotChocolate/Core/src/Abstractions/IError.cs index fc2582142d7..274e9e3fac8 100644 --- a/src/HotChocolate/Core/src/Abstractions/IError.cs +++ b/src/HotChocolate/Core/src/Abstractions/IError.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -#nullable enable - namespace HotChocolate; /// @@ -40,7 +38,7 @@ public interface IError /// This property is optional and can be null. /// IReadOnlyDictionary? Extensions { get; } - + /// /// Gets the exception associated with this error. /// diff --git a/src/HotChocolate/Core/src/Abstractions/IErrorBuilder.cs b/src/HotChocolate/Core/src/Abstractions/IErrorBuilder.cs index 462944cff8d..4bd35025e62 100644 --- a/src/HotChocolate/Core/src/Abstractions/IErrorBuilder.cs +++ b/src/HotChocolate/Core/src/Abstractions/IErrorBuilder.cs @@ -24,7 +24,7 @@ public interface IErrorBuilder IErrorBuilder AddLocation(int line, int column); - IErrorBuilder SetSyntaxNode(ISyntaxNode? syntaxNode); + IErrorBuilder AddLocation(IReadOnlyList? syntaxNodes) where T : ISyntaxNode; IErrorBuilder ClearLocations(); diff --git a/src/HotChocolate/Core/src/Authorization/AuthorizeMiddleware.cs b/src/HotChocolate/Core/src/Authorization/AuthorizeMiddleware.cs index fb235204d28..30ff6327c41 100644 --- a/src/HotChocolate/Core/src/Authorization/AuthorizeMiddleware.cs +++ b/src/HotChocolate/Core/src/Authorization/AuthorizeMiddleware.cs @@ -7,20 +7,14 @@ namespace HotChocolate.Authorization; -internal sealed class AuthorizeMiddleware +internal sealed class AuthorizeMiddleware( + FieldDelegate next, + AuthorizeDirective directive) { - private readonly FieldDelegate _next; - private readonly AuthorizeDirective _directive; - - public AuthorizeMiddleware( - FieldDelegate next, - AuthorizeDirective directive) - { - _next = next ?? - throw new ArgumentNullException(nameof(next)); - _directive = directive ?? - throw new ArgumentNullException(nameof(directive)); - } + private readonly FieldDelegate _next = next ?? + throw new ArgumentNullException(nameof(next)); + private readonly AuthorizeDirective _directive = directive ?? + throw new ArgumentNullException(nameof(directive)); public async Task InvokeAsync(IMiddlewareContext context) { @@ -87,7 +81,7 @@ private void SetError( .SetMessage(AuthorizeMiddleware_NoDefaultPolicy) .SetCode(ErrorCodes.Authentication.NoDefaultPolicy) .SetPath(context.Path) - .AddLocation(context.Selection.SyntaxNode) + .AddLocation([context.Selection.SyntaxNode]) .Build(), AuthorizeResult.PolicyNotFound => ErrorBuilder.New() @@ -96,7 +90,7 @@ private void SetError( _directive.Policy!) .SetCode(ErrorCodes.Authentication.PolicyNotFound) .SetPath(context.Path) - .AddLocation(context.Selection.SyntaxNode) + .AddLocation([context.Selection.SyntaxNode]) .Build(), _ => ErrorBuilder.New() @@ -106,7 +100,7 @@ private void SetError( ? ErrorCodes.Authentication.NotAuthorized : ErrorCodes.Authentication.NotAuthenticated) .SetPath(context.Path) - .AddLocation(context.Selection.SyntaxNode) + .AddLocation([context.Selection.SyntaxNode]) .Build(), }; } diff --git a/src/HotChocolate/Core/src/Execution/DefaultRequestContextAccessor.cs b/src/HotChocolate/Core/src/Execution/DefaultRequestContextAccessor.cs index 7f42c1fe1d0..948aad4d4c0 100644 --- a/src/HotChocolate/Core/src/Execution/DefaultRequestContextAccessor.cs +++ b/src/HotChocolate/Core/src/Execution/DefaultRequestContextAccessor.cs @@ -16,7 +16,7 @@ public IRequestContext RequestContext } set { - RequestContextHolder? holder = _requestContextCurrent.Value; + var holder = _requestContextCurrent.Value; if (holder is null) { diff --git a/src/HotChocolate/Core/src/Execution/ErrorHelper.cs b/src/HotChocolate/Core/src/Execution/ErrorHelper.cs index 487d926089f..1355c63e480 100644 --- a/src/HotChocolate/Core/src/Execution/ErrorHelper.cs +++ b/src/HotChocolate/Core/src/Execution/ErrorHelper.cs @@ -18,7 +18,7 @@ public static IError ArgumentNonNullError( .SetMessage( ErrorHelper_ArgumentNonNullError_Message, argument.Name.Value) - .AddLocation(argument) + .AddLocation([argument]) .SetExtension("responseName", responseName) .SetExtension("errorPath", validationResult.Path) .Build(); @@ -30,7 +30,7 @@ public static IError ArgumentValueIsInvalid( GraphQLException exception) { return ErrorBuilder.FromError(exception.Errors[0]) - .AddLocation(argument) + .AddLocation([argument]) .SetExtension("responseName", responseName) .Build(); } @@ -50,7 +50,7 @@ public static IError InvalidLeafValue( Path path) { return ErrorBuilder.FromError(exception.Errors[0]) - .AddLocation(field) + .AddLocation([field]) .SetPath(path) .SetCode(ErrorCodes.Execution.CannotSerializeLeafValue) .Build(); @@ -64,7 +64,7 @@ public static IError UnexpectedLeafValueSerializationError( { return errorHandler .CreateUnexpectedError(exception) - .AddLocation(field) + .AddLocation([field]) .SetPath(path) .SetCode(ErrorCodes.Execution.CannotSerializeLeafValue) .Build(); @@ -77,7 +77,7 @@ public static IError UnableToResolveTheAbstractType( { return ErrorBuilder.New() .SetMessage(ErrorHelper_UnableToResolveTheAbstractType_Message, typeName) - .AddLocation(field) + .AddLocation([field]) .SetPath(path) .SetCode(ErrorCodes.Execution.CannotResolveAbstractType) .Build(); @@ -91,7 +91,7 @@ public static IError UnexpectedErrorWhileResolvingAbstractType( { return ErrorBuilder.New() .SetMessage(ErrorHelper_UnableToResolveTheAbstractType_Message, typeName) - .AddLocation(field) + .AddLocation([field]) .SetPath(path) .SetCode(ErrorCodes.Execution.CannotResolveAbstractType) .SetException(exception) @@ -105,7 +105,7 @@ public static IError ListValueIsNotSupported( { return ErrorBuilder.New() .SetMessage(ErrorHelper_ListValueIsNotSupported_Message, listType.FullName!) - .AddLocation(field) + .AddLocation([field]) .SetPath(path) .SetCode(ErrorCodes.Execution.ListTypeNotSupported) .Build(); @@ -117,7 +117,7 @@ public static IError UnexpectedValueCompletionError( { return ErrorBuilder.New() .SetMessage(ErrorHelper_UnexpectedValueCompletionError_Message) - .AddLocation(field) + .AddLocation([field]) .SetPath(path) .SetCode(ErrorCodes.Execution.ListTypeNotSupported) .Build(); @@ -161,7 +161,7 @@ public static IError ValueCompletion_CouldNotResolveAbstractType( result.GetType().FullName ?? result.GetType().Name, field.Name) .SetPath(path) - .AddLocation(field) + .AddLocation([field]) .Build(); public static IQueryResult StateInvalidForDocumentValidation() => @@ -178,7 +178,7 @@ public static IQueryResult OperationKindNotAllowed() => .Build(), new Dictionary { - { WellKnownContextData.OperationNotAllowed, null }, + { WellKnownContextData.OperationNotAllowed, null }, }); public static IQueryResult RequestTimeout(TimeSpan timeout) => @@ -227,7 +227,7 @@ public static IError NonNullOutputFieldViolation(Path? path, FieldNode selection .SetMessage("Cannot return null for non-nullable field.") .SetCode(ErrorCodes.Execution.NonNullViolation) .SetPath(path) - .AddLocation(selection) + .AddLocation([selection]) .Build(); public static IError PersistedQueryNotFound(string requestedKey) @@ -254,15 +254,7 @@ public static IError NoNullBubbling_ArgumentValue_NotAllowed( ArgumentNode argument) { var errorBuilder = ErrorBuilder.New(); - - if (argument.Value.Location is not null) - { - errorBuilder.AddLocation( - argument.Value.Location.Line, - argument.Value.Location.Column); - } - - errorBuilder.SetSyntaxNode(argument.Value); + errorBuilder.AddLocation([argument.Value]); errorBuilder.SetMessage(ErrorHelper_NoNullBubbling_ArgumentValue_NotAllowed); return errorBuilder.Build(); diff --git a/src/HotChocolate/Core/src/Execution/Extensions/OperationContextExtensions.cs b/src/HotChocolate/Core/src/Execution/Extensions/OperationContextExtensions.cs index 172d7cf1780..e979ec85099 100644 --- a/src/HotChocolate/Core/src/Execution/Extensions/OperationContextExtensions.cs +++ b/src/HotChocolate/Core/src/Execution/Extensions/OperationContextExtensions.cs @@ -22,9 +22,9 @@ public static OperationContext ReportError( throw new ArgumentNullException(nameof(exception)); } - if (exception is GraphQLException graphQLException) + if (exception is GraphQLException ex) { - foreach (var error in graphQLException.Errors) + foreach (var error in ex.Errors) { ReportError(operationContext, error, resolverContext, selection); } @@ -34,7 +34,7 @@ public static OperationContext ReportError( var error = operationContext.ErrorHandler .CreateUnexpectedError(exception) .SetPath(path) - .AddLocation(selection.SyntaxNode) + .AddLocation([selection.SyntaxNode]) .Build(); ReportError(operationContext, error, resolverContext, selection); diff --git a/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Global.cs b/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Global.cs index 644d79e5acf..75d95c3d202 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Global.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Global.cs @@ -59,7 +59,7 @@ public void ReportError(string errorMessage) ErrorBuilder.New() .SetMessage(errorMessage) .SetPath(Path) - .AddLocation(_selection.SyntaxNode) + .AddLocation([_selection.SyntaxNode]) .Build()); } @@ -70,9 +70,9 @@ public void ReportError(Exception exception, Action? configure = throw new ArgumentNullException(nameof(exception)); } - if (exception is GraphQLException graphQLException) + if (exception is GraphQLException ex) { - foreach (var error in graphQLException.Errors) + foreach (var error in ex.Errors) { ReportError(error); } @@ -89,7 +89,7 @@ public void ReportError(Exception exception, Action? configure = var errorBuilder = _operationContext.ErrorHandler .CreateUnexpectedError(exception) .SetPath(Path) - .AddLocation(_selection.SyntaxNode); + .AddLocation([_selection.SyntaxNode]); configure?.Invoke(errorBuilder); diff --git a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs index a4abbee3d1e..c3af5c2c77a 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Diagnostics; using System.Linq; using HotChocolate.Execution.Properties; @@ -17,6 +18,8 @@ public class Selection : ISelection private long[] _includeConditions; private long _streamIfCondition; private Flags _flags; + private FieldNode _syntaxNode; + private FieldNode[] _syntaxNodes; public Selection( int id, @@ -36,7 +39,8 @@ public Selection( DeclaringType = declaringType; Field = field; Type = type; - SyntaxNode = syntaxNode; + _syntaxNode = syntaxNode; + _syntaxNodes = [syntaxNode]; ResponseName = responseName; Arguments = arguments ?? _emptyArguments; ResolverPipeline = resolverPipeline; @@ -72,7 +76,8 @@ protected Selection(Selection selection) DeclaringType = selection.DeclaringType; Field = selection.Field; Type = selection.Type; - SyntaxNode = selection.SyntaxNode; + _syntaxNode = selection._syntaxNode; + _syntaxNodes = selection._syntaxNodes; ResponseName = selection.ResponseName; ResolverPipeline = selection.ResolverPipeline; PureResolver = selection.PureResolver; @@ -112,12 +117,15 @@ protected Selection(Selection selection) public bool IsList => (_flags & Flags.List) == Flags.List; /// - public FieldNode SyntaxNode { get; private set; } + public FieldNode SyntaxNode => _syntaxNode; + + /// + public IReadOnlyList SyntaxNodes => _syntaxNodes; public int SelectionSetId { get; private set; } /// - public SelectionSetNode? SelectionSet => SyntaxNode.SelectionSet; + public SelectionSetNode? SelectionSet => _syntaxNode.SelectionSet; /// public string ResponseName { get; } @@ -192,7 +200,7 @@ public bool IsIncluded(long includeFlags, bool allowInternals = false) } public override string ToString() - => SyntaxNode.ToString(); + => _syntaxNode.ToString(); internal void AddSelection(FieldNode selectionSyntax, long includeCondition = 0) { @@ -216,9 +224,15 @@ internal void AddSelection(FieldNode selectionSyntax, long includeCondition = 0) _includeConditions[next] = includeCondition; } - if (!SyntaxNode.Equals(selectionSyntax, SyntaxComparison.Syntax)) + if (!_syntaxNode.Equals(selectionSyntax, SyntaxComparison.Syntax)) { - SyntaxNode = MergeField(SyntaxNode, selectionSyntax); + // enlarge the syntax nodes array and add the new syntax node. + var temp = new FieldNode[_syntaxNodes.Length + 1]; + Array.Copy(_syntaxNodes, temp, _syntaxNodes.Length); + temp[_syntaxNodes.Length] = selectionSyntax; + _syntaxNodes = temp; + + _syntaxNode = MergeField(_syntaxNode, selectionSyntax); } } diff --git a/src/HotChocolate/Core/src/Execution/ThrowHelper.cs b/src/HotChocolate/Core/src/Execution/ThrowHelper.cs index 314082a4623..74f9b1270d2 100644 --- a/src/HotChocolate/Core/src/Execution/ThrowHelper.cs +++ b/src/HotChocolate/Core/src/Execution/ThrowHelper.cs @@ -19,7 +19,7 @@ public static GraphQLException VariableIsNotAnInputType( .SetCode(ErrorCodes.Execution.MustBeInputType) .SetExtension("variable", variableDefinition.Variable.Name.Value) .SetExtension("type", variableDefinition.Type.ToString()) - .AddLocation(variableDefinition) + .AddLocation([variableDefinition]) .Build()); } @@ -33,7 +33,7 @@ public static GraphQLException NonNullVariableIsNull( variableDefinition.Variable.Name.Value) .SetCode(ErrorCodes.Execution.NonNullViolation) .SetExtension("variable", variableDefinition.Variable.Name.Value) - .AddLocation(variableDefinition) + .AddLocation([variableDefinition]) .Build()); } @@ -51,7 +51,7 @@ public static GraphQLException VariableValueInvalidType( variableDefinition.Variable.Name.Value) .SetCode(ErrorCodes.Execution.InvalidType) .SetExtension("variable", variableDefinition.Variable.Name.Value) - .AddLocation(variableDefinition); + .AddLocation([variableDefinition]); if (exception is not null) { @@ -75,7 +75,7 @@ public static GraphQLException FieldDoesNotExistOnType( ThrowHelper_FieldDoesNotExistOnType, selection.Name.Value, typeName) - .AddLocation(selection) + .AddLocation([selection]) .Build()); } @@ -126,7 +126,7 @@ public static GraphQLException ResolverContext_LiteralsNotSupported( new(ErrorBuilder.New() .SetMessage(ThrowHelper_ResolverContext_LiteralsNotSupported_Message) .SetPath(path) - .AddLocation(field) + .AddLocation([field]) .SetExtension("fieldName", field.Name) .SetExtension("argumentName", argumentName) .SetExtension("requestedType", requestedType.FullName) @@ -140,7 +140,7 @@ public static GraphQLException ResolverContext_CannotConvertArgument( argumentName, requestedType.FullName ?? requestedType.Name) .SetPath(path) - .AddLocation(field) + .AddLocation([field]) .SetExtension("fieldName", field.Name) .SetExtension("argumentName", argumentName) .SetExtension("requestedType", requestedType.FullName) @@ -155,7 +155,7 @@ public static GraphQLException ResolverContext_LiteralNotCompatible( actualType.FullName ?? actualType.Name, requestedType.FullName ?? actualType.Name) .SetPath(path) - .AddLocation(field) + .AddLocation([field]) .SetExtension("fieldName", field.Name) .SetExtension("argumentName", argumentName) .SetExtension("requestedType", requestedType.FullName) @@ -170,7 +170,7 @@ public static GraphQLException ResolverContext_ArgumentDoesNotExist( argumentName, field.Name.Value) .SetPath(path) - .AddLocation(field) + .AddLocation([field]) .SetExtension("fieldName", field.Name) .SetExtension("argumentName", argumentName) .Build()); @@ -183,7 +183,7 @@ public static GraphQLException OperationResolverHelper_NoOperationFound( DocumentNode documentNode) => new(ErrorBuilder.New() .SetMessage(ThrowHelper_OperationResolverHelper_NoOperationFound_Message) - .AddLocation(documentNode) + .AddLocation([documentNode]) .Build()); public static GraphQLException OperationResolverHelper_MultipleOperation( @@ -191,8 +191,7 @@ public static GraphQLException OperationResolverHelper_MultipleOperation( OperationDefinitionNode secondOperation) => new(ErrorBuilder.New() .SetMessage(ThrowHelper_OperationResolverHelper_MultipleOperation_Message) - .AddLocation(firstOperation) - .AddLocation(secondOperation) + .AddLocation([firstOperation, secondOperation]) .Build()); public static GraphQLException OperationResolverHelper_InvalidOperationName( @@ -201,7 +200,7 @@ public static GraphQLException OperationResolverHelper_InvalidOperationName( .SetMessage( ThrowHelper_OperationResolverHelper_InvalidOperationName_Message, operationName) - .AddLocation(documentNode) + .AddLocation([documentNode]) .SetExtension("operationName", operationName) .Build()); @@ -221,20 +220,20 @@ public static GraphQLException CollectVariablesVisitor_NoCompatibleType( .SetMessage(ThrowHelper_CollectVariablesVisitor_NoCompatibleType_Message) .SetCode(ErrorCodes.Execution.AutoMapVarError) .SetPath(path) - .AddLocation(node) + .AddLocation([node]) .Build()); public static GraphQLException FieldVisibility_ValueNotSupported(IValueNode value) => new(ErrorBuilder.New() .SetMessage(ThrowHelper_FieldVisibility_ValueNotSupported_Message) - .AddLocation(value) + .AddLocation([value]) .Build()); public static GraphQLException QueryCompiler_CompositeTypeSelectionSet( FieldNode selection) => new(ErrorBuilder.New() .SetMessage(ThrowHelper_QueryCompiler_CompositeTypeSelectionSet_Message) - .AddLocation(selection) + .AddLocation([selection]) .Build()); public static GraphQLException OperationExecutionMiddleware_NoBatchDispatcher() => diff --git a/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/IntToStructBaseType.cs b/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/IntToStructBaseType.cs index 105a22b4218..1eba389ac97 100644 --- a/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/IntToStructBaseType.cs +++ b/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/IntToStructBaseType.cs @@ -29,7 +29,7 @@ protected IntToStructBaseType(string name) /// protected override TRuntimeType ParseLiteral(IntValueNode literal) { - if (TryDeserialize(literal.ToInt32(), out TRuntimeType? value)) + if (TryDeserialize(literal.ToInt32(), out var value)) { return value.Value; } @@ -124,7 +124,7 @@ public override bool TryDeserialize( return true; } - if (resultValue is int i && TryDeserialize(i, out TRuntimeType? val)) + if (resultValue is int i && TryDeserialize(i, out var val)) { runtimeValue = val; return true; diff --git a/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToClassBaseType.cs b/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToClassBaseType.cs index 6cb8a9c8db1..7e176ff5698 100644 --- a/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToClassBaseType.cs +++ b/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToClassBaseType.cs @@ -29,7 +29,7 @@ protected StringToClassBaseType(string name) /// protected override TRuntimeType ParseLiteral(StringValueNode literal) { - if (TryDeserialize(literal.Value, out TRuntimeType? value)) + if (TryDeserialize(literal.Value, out var value)) { return value; } @@ -105,7 +105,7 @@ public override bool TryDeserialize(object? resultValue, out object? runtimeValu return true; } - if (resultValue is string s && TryDeserialize(s, out TRuntimeType? val)) + if (resultValue is string s && TryDeserialize(s, out var val)) { runtimeValue = val; return true; diff --git a/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToStructBaseType.cs b/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToStructBaseType.cs index 5bb2bc54c7b..f42e6be6deb 100644 --- a/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToStructBaseType.cs +++ b/src/HotChocolate/Core/src/Types.NodaTime/BaseTypes/StringToStructBaseType.cs @@ -29,7 +29,7 @@ public StringToStructBaseType(string name) /// protected override TRuntimeType ParseLiteral(StringValueNode literal) { - if (TryDeserialize(literal.Value, out TRuntimeType? value)) + if (TryDeserialize(literal.Value, out var value)) { return value.Value; } @@ -107,7 +107,7 @@ public override bool TryDeserialize(object? resultValue, out object? runtimeValu return true; } - if (resultValue is string s && TryDeserialize(s, out TRuntimeType? val)) + if (resultValue is string s && TryDeserialize(s, out var val)) { runtimeValue = val; return true; diff --git a/src/HotChocolate/Core/src/Types.NodaTime/DateTimeZoneType.cs b/src/HotChocolate/Core/src/Types.NodaTime/DateTimeZoneType.cs index 6fdef75d470..a74694cbbe2 100644 --- a/src/HotChocolate/Core/src/Types.NodaTime/DateTimeZoneType.cs +++ b/src/HotChocolate/Core/src/Types.NodaTime/DateTimeZoneType.cs @@ -29,7 +29,7 @@ protected override bool TryDeserialize( string resultValue, [NotNullWhen(true)] out DateTimeZone? runtimeValue) { - DateTimeZone? result = DateTimeZoneProviders.Tzdb.GetZoneOrNull(resultValue); + var result = DateTimeZoneProviders.Tzdb.GetZoneOrNull(resultValue); if (result == null) { diff --git a/src/HotChocolate/Core/src/Types.NodaTime/Extensions/PatternExtensions.cs b/src/HotChocolate/Core/src/Types.NodaTime/Extensions/PatternExtensions.cs index 19116fa15aa..d961bb067bf 100644 --- a/src/HotChocolate/Core/src/Types.NodaTime/Extensions/PatternExtensions.cs +++ b/src/HotChocolate/Core/src/Types.NodaTime/Extensions/PatternExtensions.cs @@ -11,7 +11,7 @@ public static bool TryParse( [NotNullWhen(true)] out NodaTimeType? output) where NodaTimeType : struct { - ParseResult result = pattern.Parse(text); + var result = pattern.Parse(text); if (result.Success) { @@ -47,7 +47,7 @@ public static bool TryParse( [NotNullWhen(true)] out NodaTimeType? output) where NodaTimeType : struct { - foreach (IPattern pattern in patterns) + foreach (var pattern in patterns) { if (pattern.TryParse(text, out output)) { diff --git a/src/HotChocolate/Core/src/Types.Scalars/LatitudeType.cs b/src/HotChocolate/Core/src/Types.Scalars/LatitudeType.cs index 6ea449685a2..21d1236514f 100644 --- a/src/HotChocolate/Core/src/Types.Scalars/LatitudeType.cs +++ b/src/HotChocolate/Core/src/Types.Scalars/LatitudeType.cs @@ -131,7 +131,7 @@ public static bool TryDeserialize( string serialized, [NotNullWhen(true)] out double? value) { - MatchCollection coords = _validationPattern.Matches(serialized); + var coords = _validationPattern.Matches(serialized); if (coords.Count > 0) { var minute = double.TryParse(coords[0].Groups[2].Value, out var min) @@ -174,7 +174,7 @@ public static bool TrySerialize( var seconds = Round(minutesDecimal * 60, _maxPrecision, MidpointRounding.AwayFromZero); - string serializedLatitude = degree switch + var serializedLatitude = degree switch { >= 0 and < _max => $"{degree}° {minutes}' {seconds}\" N", < 0 and > _min => $"{Abs(degree)}° {Abs(minutes)}' {Abs(seconds)}\" S", diff --git a/src/HotChocolate/Core/src/Types.Scalars/LocalDateType.cs b/src/HotChocolate/Core/src/Types.Scalars/LocalDateType.cs index 52658543e08..a09f3a233de 100644 --- a/src/HotChocolate/Core/src/Types.Scalars/LocalDateType.cs +++ b/src/HotChocolate/Core/src/Types.Scalars/LocalDateType.cs @@ -51,7 +51,7 @@ public override IValueNode ParseResult(object? resultValue) protected override DateTime ParseLiteral(StringValueNode valueSyntax) { - if (TryDeserializeFromString(valueSyntax.Value, out DateTime? value)) + if (TryDeserializeFromString(valueSyntax.Value, out var value)) { return value.Value; } @@ -90,7 +90,7 @@ public override bool TryDeserialize(object? resultValue, out object? runtimeValu case null: runtimeValue = null; return true; - case string s when TryDeserializeFromString(s, out DateTime? d): + case string s when TryDeserializeFromString(s, out var d): runtimeValue = d; return true; case DateTimeOffset d: @@ -119,7 +119,7 @@ private static bool TryDeserializeFromString( serialized, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, - out DateTime dt)) + out var dt)) { value = dt; return true; diff --git a/src/HotChocolate/Core/src/Types.Scalars/LocalTimeType.cs b/src/HotChocolate/Core/src/Types.Scalars/LocalTimeType.cs index 914326c8ee7..cb024b2843e 100644 --- a/src/HotChocolate/Core/src/Types.Scalars/LocalTimeType.cs +++ b/src/HotChocolate/Core/src/Types.Scalars/LocalTimeType.cs @@ -50,7 +50,7 @@ public override IValueNode ParseResult(object? resultValue) protected override DateTime ParseLiteral(StringValueNode valueSyntax) { - if (TryDeserializeFromString(valueSyntax.Value, out DateTime? value)) + if (TryDeserializeFromString(valueSyntax.Value, out var value)) { return value.Value; } @@ -89,7 +89,7 @@ public override bool TryDeserialize(object? resultValue, out object? runtimeValu case null: runtimeValue = null; return true; - case string s when TryDeserializeFromString(s, out DateTime? d): + case string s when TryDeserializeFromString(s, out var d): runtimeValue = d; return true; case DateTimeOffset d: @@ -118,7 +118,7 @@ private static bool TryDeserializeFromString( serialized, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, - out DateTime dt)) + out var dt)) { value = dt; return true; diff --git a/src/HotChocolate/Core/src/Types.Scalars/LongitudeType.cs b/src/HotChocolate/Core/src/Types.Scalars/LongitudeType.cs index a42f82bb749..9b907735d4e 100644 --- a/src/HotChocolate/Core/src/Types.Scalars/LongitudeType.cs +++ b/src/HotChocolate/Core/src/Types.Scalars/LongitudeType.cs @@ -130,7 +130,7 @@ public static bool TryDeserialize( string serialized, [NotNullWhen(true)] out double? value) { - MatchCollection coords = _validationPattern.Matches(serialized); + var coords = _validationPattern.Matches(serialized); if (coords.Count > 0) { var minute = double.TryParse(coords[0].Groups[2].Value, out var min) @@ -173,7 +173,7 @@ public static bool TrySerialize( var seconds = Round(minutesDecimal * 60, _maxPrecision, MidpointRounding.AwayFromZero); - string serializedLatitude = degree switch + var serializedLatitude = degree switch { >= 0 and < _max => $"{degree}° {minutes}' {seconds}\" E", < 0 and > _min => $"{Abs(degree)}° {Abs(minutes)}' {Abs(seconds)}\" W", diff --git a/src/HotChocolate/Core/src/Types.Scalars/UtcOffsetType.cs b/src/HotChocolate/Core/src/Types.Scalars/UtcOffsetType.cs index 1b054a53a9d..574d71b8b04 100644 --- a/src/HotChocolate/Core/src/Types.Scalars/UtcOffsetType.cs +++ b/src/HotChocolate/Core/src/Types.Scalars/UtcOffsetType.cs @@ -41,7 +41,7 @@ public override IValueNode ParseResult(object? resultValue) { null => NullValueNode.Default, - string s when OffsetLookup.TryDeserialize(s, out TimeSpan timespan) => + string s when OffsetLookup.TryDeserialize(s, out var timespan) => ParseValue(timespan), TimeSpan ts => ParseValue(ts), @@ -53,7 +53,7 @@ string s when OffsetLookup.TryDeserialize(s, out TimeSpan timespan) => /// protected override TimeSpan ParseLiteral(StringValueNode valueSyntax) { - if (OffsetLookup.TryDeserialize(valueSyntax.Value, out TimeSpan parsed)) + if (OffsetLookup.TryDeserialize(valueSyntax.Value, out var parsed)) { return parsed; } @@ -97,7 +97,7 @@ public override bool TryDeserialize(object? resultValue, out object? runtimeValu case null: runtimeValue = null; return true; - case string s when OffsetLookup.TryDeserialize(s, out TimeSpan timeSpan): + case string s when OffsetLookup.TryDeserialize(s, out var timeSpan): runtimeValue = timeSpan; return true; case TimeSpan timeSpan when OffsetLookup.TrySerialize(timeSpan, out _): diff --git a/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs b/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs index d1ff0aabfd7..897267b459c 100644 --- a/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs +++ b/src/HotChocolate/Core/src/Types/Execution/Processing/ISelection.cs @@ -53,10 +53,15 @@ public interface ISelection : IOptionalSelection ISelectionSet DeclaringSelectionSet { get; } /// - /// Gets the field selection syntax node. + /// Gets the merged field selection syntax node. /// FieldNode SyntaxNode { get; } + /// + /// Gets the field selection syntax node. + /// + IReadOnlyList SyntaxNodes { get; } + /// /// If this selection selects a field that returns a composite type /// then this selection set represents the fields that are selected diff --git a/src/HotChocolate/Core/src/Types/Resolvers/DefaultResolverCompiler.cs b/src/HotChocolate/Core/src/Types/Resolvers/DefaultResolverCompiler.cs index 82093af0bb9..b7ddea318f1 100644 --- a/src/HotChocolate/Core/src/Types/Resolvers/DefaultResolverCompiler.cs +++ b/src/HotChocolate/Core/src/Types/Resolvers/DefaultResolverCompiler.cs @@ -52,7 +52,7 @@ public DefaultResolverCompiler( { var appServiceProvider = schemaServiceProvider.GetService(); var serviceInspector = appServiceProvider?.GetService(); - + var custom = customParameterExpressionBuilders is not null ? [..customParameterExpressionBuilders,] : new List(); diff --git a/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/SelectionParameterExpressionBuilder.cs b/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/SelectionParameterExpressionBuilder.cs index d69bae591d0..115cf027a4c 100644 --- a/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/SelectionParameterExpressionBuilder.cs +++ b/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/SelectionParameterExpressionBuilder.cs @@ -7,14 +7,9 @@ namespace HotChocolate.Resolvers.Expressions.Parameters; -internal sealed class SelectionParameterExpressionBuilder - : LambdaParameterExpressionBuilder +internal sealed class SelectionParameterExpressionBuilder() + : LambdaParameterExpressionBuilder(ctx => ctx.Selection) { - public SelectionParameterExpressionBuilder() - : base(ctx => ctx.Selection) - { - } - public override ArgumentKind Kind => ArgumentKind.Selection; public override bool CanHandle(ParameterInfo parameter) diff --git a/src/HotChocolate/Core/src/Types/Types/Interceptors/FlagEnumTypeInterceptor.cs b/src/HotChocolate/Core/src/Types/Types/Interceptors/FlagEnumTypeInterceptor.cs index 56fcc9aa206..ce65b3b29f8 100644 --- a/src/HotChocolate/Core/src/Types/Types/Interceptors/FlagEnumTypeInterceptor.cs +++ b/src/HotChocolate/Core/src/Types/Types/Interceptors/FlagEnumTypeInterceptor.cs @@ -92,7 +92,7 @@ private void ProcessInputFields(IEnumerable fields) { foreach (var field in fields) { - if (IsFlagsEnum(field.Type, out Type? t)) + if (IsFlagsEnum(field.Type, out var t)) { var type = CreateInputObjectType(t); field.Type = CreateTypeReference(field.Type, type.Name); @@ -303,27 +303,27 @@ private static T SetFlag(T e, T flag) { // byte, sbyte case 1: - byte b = + var b = (byte)(Unsafe.As(ref e) | Unsafe.As(ref flag)); return Unsafe.As(ref b); //short, ushort case 2: - short s = + var s = (short)(Unsafe.As(ref e) | Unsafe.As(ref flag)); return Unsafe.As(ref s); //int, uint case 4: - uint i = Unsafe.As(ref e) | Unsafe.As(ref flag); + var i = Unsafe.As(ref e) | Unsafe.As(ref flag); return Unsafe.As(ref i); //long , ulong case 8: - ulong l = Unsafe.As(ref e) | Unsafe.As(ref flag); + var l = Unsafe.As(ref e) | Unsafe.As(ref flag); return Unsafe.As(ref l); diff --git a/src/HotChocolate/Core/src/Types/Types/Pagination/PagingMiddleware.cs b/src/HotChocolate/Core/src/Types/Types/Pagination/PagingMiddleware.cs index 9109e5f574a..af36a0d1745 100644 --- a/src/HotChocolate/Core/src/Types/Types/Pagination/PagingMiddleware.cs +++ b/src/HotChocolate/Core/src/Types/Types/Pagination/PagingMiddleware.cs @@ -1,5 +1,6 @@ using System; using System.Threading.Tasks; +using HotChocolate.Language; using HotChocolate.Resolvers; #nullable enable @@ -27,7 +28,7 @@ public async ValueTask InvokeAsync(IMiddlewareContext context) { return; } - + context.Result = fieldResult.Value; } @@ -47,8 +48,7 @@ public async ValueTask InvokeAsync(IMiddlewareContext context) { errors[i] = ErrorBuilder .FromError(ex.Errors[i]) - .AddLocation(context.Selection.SyntaxNode) - .SetSyntaxNode(context.Selection.SyntaxNode) + .AddLocation(context.Selection.SyntaxNodes) .SetPath(context.Path) .Build(); } diff --git a/src/HotChocolate/Core/src/Types/Types/Relay/NodeFieldResolvers.cs b/src/HotChocolate/Core/src/Types/Types/Relay/NodeFieldResolvers.cs index b5555b43070..54eacd0a339 100644 --- a/src/HotChocolate/Core/src/Types/Types/Relay/NodeFieldResolvers.cs +++ b/src/HotChocolate/Core/src/Types/Types/Relay/NodeFieldResolvers.cs @@ -46,7 +46,7 @@ public static async ValueTask ResolveSingleNodeAsync( ErrorHelper.Relay_NoNodeResolver( typeName, context.Path, - context.Selection.SyntaxNode)); + context.Selection.SyntaxNodes)); context.Result = null; } @@ -70,7 +70,7 @@ public static async ValueTask ResolveManyNodeAsync( { context.ReportError( ErrorHelper.FetchedToManyNodesAtOnce( - context.Selection.SyntaxNode, + context.Selection.SyntaxNodes, context.Path, maxAllowedNodes, list.Items.Count)); @@ -109,7 +109,7 @@ public static async ValueTask ResolveManyNodeAsync( ErrorHelper.Relay_NoNodeResolver( typeName, context.Path, - context.Selection.SyntaxNode)); + context.Selection.SyntaxNodes)); } } @@ -175,11 +175,12 @@ public static async ValueTask ResolveManyNodeAsync( ErrorHelper.Relay_NoNodeResolver( typeName, context.Path, - context.Selection.SyntaxNode)); + context.Selection.SyntaxNodes)); } context.Result = result; } + return; static async Task ExecutePipelineAsync( IMiddlewareContext nodeResolverContext, diff --git a/src/HotChocolate/Core/src/Types/Utilities/ErrorHelper.cs b/src/HotChocolate/Core/src/Types/Utilities/ErrorHelper.cs index 190b75cfe3d..0cb3cabf31f 100644 --- a/src/HotChocolate/Core/src/Types/Utilities/ErrorHelper.cs +++ b/src/HotChocolate/Core/src/Types/Utilities/ErrorHelper.cs @@ -438,11 +438,11 @@ public static ISchemaError NoSchemaTypesAllowedAsRuntimeType( .SetTypeSystemObject(type) .Build(); - public static IError Relay_NoNodeResolver(string typeName, Path path, FieldNode fieldNode) + public static IError Relay_NoNodeResolver(string typeName, Path path, IReadOnlyList fieldNodes) => ErrorBuilder.New() .SetMessage(ErrorHelper_Relay_NoNodeResolver, typeName) .SetPath(path) - .SetSyntaxNode(fieldNode) + .AddLocation(fieldNodes) .Build(); public static ISchemaError NodeResolver_MustHaveExactlyOneIdArg( @@ -480,7 +480,7 @@ public static ISchemaError NodeResolverMissing( .Build(); public static IError FetchedToManyNodesAtOnce( - FieldNode fieldNode, + IReadOnlyList fieldNodes, Path path, int maxAllowedNodes, int requestNodes) @@ -489,7 +489,7 @@ public static IError FetchedToManyNodesAtOnce( ErrorHelper_FetchedToManyNodesAtOnce, maxAllowedNodes, requestNodes) - .AddLocation(fieldNode) + .AddLocation(fieldNodes) .SetPath(path) .SetCode(ErrorCodes.Execution.FetchedToManyNodesAtOnce) .Build(); diff --git a/src/HotChocolate/Core/src/Types/Utilities/ThrowHelper.cs b/src/HotChocolate/Core/src/Types/Utilities/ThrowHelper.cs index 76320eedf8e..e01295be58a 100644 --- a/src/HotChocolate/Core/src/Types/Utilities/ThrowHelper.cs +++ b/src/HotChocolate/Core/src/Types/Utilities/ThrowHelper.cs @@ -539,7 +539,7 @@ public static GraphQLException MissingIfArgument(DirectiveNode directive) .SetMessage( ThrowHelper_MissingDirectiveIfArgument, directive.Name.Value) - .AddLocation(directive) + .AddLocation([directive]) .Build()); public static InvalidOperationException Flags_Enum_Shape_Unknown(Type type) diff --git a/src/HotChocolate/Core/src/Validation/ErrorHelper.cs b/src/HotChocolate/Core/src/Validation/ErrorHelper.cs index f1534b08680..12218fd0699 100644 --- a/src/HotChocolate/Core/src/Validation/ErrorHelper.cs +++ b/src/HotChocolate/Core/src/Validation/ErrorHelper.cs @@ -16,7 +16,7 @@ public static IError VariableNotUsed( .SetMessage( "The following variables were not used: " + $"{string.Join(", ", context.Unused)}.") - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SpecifiedBy("sec-All-Variables-Used") .Build(); @@ -30,7 +30,7 @@ public static IError VariableNotDeclared( .SetMessage( "The following variables were not declared: " + $"{string.Join(", ", context.Used)}.") - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SpecifiedBy("sec-All-Variable-Uses-Defined") .Build(); @@ -47,7 +47,7 @@ public static IError VariableIsNotCompatible( .SetMessage( Resources.ErrorHelper_VariableIsNotCompatible, variableName) - .AddLocation(variable) + .AddLocation([variable]) .SetPath(context.CreateErrorPath()) .SetExtension("variable", variableName) .SetExtension("variableType", variableDefinition.Type.ToString()) @@ -62,7 +62,7 @@ public static IError DirectiveNotValidInLocation( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_DirectiveNotValidInLocation) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SpecifiedBy("sec-Directives-Are-In-Valid-Locations") .Build(); @@ -76,7 +76,7 @@ public static IError DirectiveNotSupported( .SetMessage( Resources.ErrorHelper_DirectiveNotSupported, node.Name.Value) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SpecifiedBy("sec-Directives-Are-Defined") .Build(); @@ -87,7 +87,7 @@ public static IError DirectiveMustBeUniqueInLocation( DirectiveNode node) => ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_DirectiveMustBeUniqueInLocation) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SpecifiedBy("sec-Directives-Are-Unique-Per-Location") .Build(); @@ -98,7 +98,7 @@ public static IError TypeSystemDefinitionNotAllowed( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_TypeSystemDefinitionNotAllowed) - .AddLocation(node) + .AddLocation([node]) .SpecifiedBy("sec-Executable-Definitions") .Build(); } @@ -110,7 +110,7 @@ public static IError UnionFieldError( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_UnionFieldError) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("type", type.Name) .SpecifiedBy("sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types") @@ -126,7 +126,7 @@ public static IError FieldDoesNotExist( .SetMessage( Resources.ErrorHelper_FieldDoesNotExist, node.Name.Value, outputType.Name) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("type", outputType.Name) .SetExtension("field", node.Name.Value) @@ -145,7 +145,7 @@ public static IError LeafFieldsCannotHaveSelections( .SetMessage( Resources.ErrorHelper_LeafFieldsCannotHaveSelections, node.Name.Value, fieldType.IsScalarType() ? "a scalar" : "an enum") - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("declaringType", declaringType.Name) .SetExtension("field", node.Name.Value) @@ -163,7 +163,7 @@ public static IError ArgumentValueIsNotCompatible( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_ArgumentValueIsNotCompatible) - .AddLocation(valueNode) + .AddLocation([valueNode]) .SetPath(context.CreateErrorPath()) .SetExtension("argument", node.Name.Value) .SetExtension("argumentValue", valueNode.ToString()) @@ -180,7 +180,7 @@ public static IError FieldValueIsNotCompatible( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_FieldValueIsNotCompatible, field.Name) - .AddLocation(valueNode) + .AddLocation([valueNode]) .SetExtension("fieldName", field.Name) .SetExtension("fieldType", field.Type.Print()) .SetExtension("locationType", locationType.Print()) @@ -199,7 +199,7 @@ public static IError VariableDefaultValueIsNotCompatible( .SetMessage( Resources.ErrorHelper_VariableDefaultValueIsNotCompatible, node.Variable.Name.Value) - .AddLocation(valueNode) + .AddLocation([valueNode]) .SetPath(context.CreateErrorPath()) .SetExtension("variable", node.Variable.Name.Value) .SetExtension("variableType", node.Type.ToString()) @@ -218,7 +218,7 @@ public static IError NoSelectionOnCompositeField( .SetMessage( Resources.ErrorHelper_NoSelectionOnCompositeField, node.Name.Value) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("declaringType", declaringType.Name) .SetExtension("field", node.Name.Value) @@ -237,7 +237,7 @@ public static IError NoSelectionOnRootType( .SetMessage( Resources.ErrorHelper_NoSelectionOnRootType, node.Name?.Value ?? "Unnamed") - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("operation", node.Name?.Value ?? "Unnamed") .SetExtension("type", fieldType.Print()) @@ -252,7 +252,7 @@ public static IError FieldIsRequiredButNull( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_FieldIsRequiredButNull, fieldName) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("field", fieldName) .SpecifiedBy("sec-Input-Object-Required-Fields") @@ -266,8 +266,7 @@ public static IError FieldsAreNotMergeable( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_FieldsAreNotMergable) - .AddLocation(fieldA.Field) - .AddLocation(fieldB.Field) + .AddLocation([fieldA.Field, fieldB.Field]) .SetExtension("declaringTypeA", fieldA.DeclaringType.NamedType().Name) .SetExtension("declaringTypeB", fieldB.DeclaringType.NamedType().Name) .SetExtension("fieldA", fieldA.Field.Name.Value) @@ -288,7 +287,7 @@ public static IError FragmentNameNotUnique( .SetMessage( Resources.ErrorHelper_FragmentNameNotUnique, fragmentDefinition.Name.Value) - .AddLocation(fragmentDefinition) + .AddLocation([fragmentDefinition]) .SetExtension("fragment", fragmentDefinition.Name.Value) .SpecifiedBy("sec-Fragment-Name-Uniqueness") .Build(); @@ -302,7 +301,7 @@ public static IError FragmentNotUsed( .SetMessage( Resources.ErrorHelper_FragmentNotUsed, fragmentDefinition.Name.Value) - .AddLocation(fragmentDefinition) + .AddLocation([fragmentDefinition]) .SetPath(context.CreateErrorPath()) .SetExtension("fragment", fragmentDefinition.Name.Value) .SpecifiedBy("sec-Fragments-Must-Be-Used") @@ -315,7 +314,7 @@ public static IError FragmentCycleDetected( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_FragmentCycleDetected) - .AddLocation(fragmentSpread) + .AddLocation([fragmentSpread]) .SetPath(context.CreateErrorPath()) .SetExtension("fragment", fragmentSpread.Name.Value) .SpecifiedBy("sec-Fragment-spreads-must-not-form-cycles") @@ -330,7 +329,7 @@ public static IError FragmentDoesNotExist( .SetMessage( Resources.ErrorHelper_FragmentDoesNotExist, fragmentSpread.Name.Value) - .AddLocation(fragmentSpread) + .AddLocation([fragmentSpread]) .SetPath(context.CreateErrorPath()) .SetExtension("fragment", fragmentSpread.Name.Value) .SpecifiedBy("sec-Fragment-spread-target-defined") @@ -345,7 +344,7 @@ public static IError FragmentNotPossible( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_FragmentNotPossible) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("typeCondition", typeCondition.Print()) .SetExtension("selectionSetType", parentType.Print()) @@ -363,7 +362,7 @@ public static IError FragmentTypeConditionUnknown( .SetMessage( Resources.ErrorHelper_FragmentTypeConditionUnknown, typeCondition.Name.Value) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("typeCondition", typeCondition.Name.Value) .SetFragmentName(node) @@ -378,7 +377,7 @@ public static IError FragmentOnlyCompositeType( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_FragmentOnlyCompositeType) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("typeCondition", type.Print()) .SetFragmentName(node) @@ -392,7 +391,7 @@ public static IError InputFieldAmbiguous( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_InputFieldAmbiguous, field.Name.Value) - .AddLocation(field) + .AddLocation([field]) .SetPath(context.CreateErrorPath()) .SetExtension("field", field.Name.Value) .SpecifiedBy("sec-Input-Object-Field-Uniqueness") @@ -407,7 +406,7 @@ public static IError InputFieldDoesNotExist( .SetMessage( Resources.ErrorHelper_InputFieldDoesNotExist, field.Name.Value) - .AddLocation(field) + .AddLocation([field]) .SetPath(context.CreateErrorPath()) .SetExtension("field", field.Name.Value) .SpecifiedBy("sec-Input-Object-Field-Names") @@ -421,7 +420,7 @@ public static IError InputFieldRequired( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_InputFieldRequired, fieldName) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("field", fieldName) .SpecifiedBy("sec-Input-Object-Required-Fields") @@ -437,7 +436,7 @@ public static IError OperationNameNotUnique( .SetMessage( Resources.ErrorHelper_OperationNameNotUnique, operationName) - .AddLocation(operation) + .AddLocation([operation]) .SetExtension("operation", operationName) .SpecifiedBy("sec-Operation-Name-Uniqueness") .Build(); @@ -450,7 +449,7 @@ public static IError OperationAnonymousMoreThanOne( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_OperationAnonymousMoreThanOne) - .AddLocation(operation) + .AddLocation([operation]) .SetExtension("operations", operations) .SpecifiedBy("sec-Lone-Anonymous-Operation") .Build(); @@ -463,7 +462,7 @@ public static IError VariableNotInputType( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_VariableNotInputType, variableName) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("variable", variableName) .SetExtension("variableType", node.Type.ToString()) @@ -478,7 +477,7 @@ public static IError VariableNameNotUnique( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_VariableNameNotUnique) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension("variable", variableName) .SetExtension("variableType", node.Type.ToString()) @@ -494,7 +493,7 @@ public static IError ArgumentNotUnique( { var builder = ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_ArgumentNotUnique) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()); if (field is { }) @@ -524,7 +523,7 @@ public static IError ArgumentRequired( { var builder = ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_ArgumentRequired, argumentName) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()); if (field is { }) @@ -553,7 +552,7 @@ public static IError ArgumentDoesNotExist( { var builder = ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_ArgumentDoesNotExist, node.Name.Value) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()); if (field is { }) @@ -580,7 +579,7 @@ public static IError SubscriptionSingleRootField( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_SubscriptionSingleRootField) - .AddLocation(operation) + .AddLocation([operation]) .SpecifiedBy("sec-Single-root-field") .Build(); } @@ -591,7 +590,7 @@ public static IError SubscriptionNoTopLevelIntrospectionField( { return ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_SubscriptionNoTopLevelIntrospectionField) - .AddLocation(operation) + .AddLocation([operation]) .SpecifiedBy("sec-Single-root-field") .Build(); } @@ -606,7 +605,7 @@ public static IError MaxOperationComplexity( .SetMessage( Resources.ErrorHelper_MaxOperationComplexity, detectedComplexity, allowedComplexity) - .AddLocation(operation) + .AddLocation([operation]) .SetExtension("allowedComplexity", allowedComplexity) .SetExtension("detectedComplexity", detectedComplexity) .Build(); @@ -622,7 +621,7 @@ public static IError MaxExecutionDepth( .SetMessage( Resources.ErrorHelper_MaxExecutionDepth, detectedExecutionDepth, allowedExecutionDepth) - .AddLocation(operation) + .AddLocation([operation]) .SetExtension("allowedExecutionDepth", allowedExecutionDepth) .SetExtension("detectedExecutionDepth", detectedExecutionDepth) .Build(); @@ -649,7 +648,7 @@ public static IError IntrospectionNotAllowed( return ErrorBuilder.New() .SetMessage(message) - .AddLocation(field) + .AddLocation([field]) .SetExtension(nameof(field), field.Name) .SetCode(ErrorCodes.Validation.IntrospectionNotAllowed) .Build(); @@ -661,7 +660,7 @@ public static IError OneOfMustHaveExactlyOneField( InputObjectType type) => ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_OneOfMustHaveExactlyOneField, type.Name) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension(nameof(type), type.Name) .SpecifiedBy("sec-Oneof–Input-Objects-Have-Exactly-One-Field", rfc: 825) @@ -678,7 +677,7 @@ public static IError OneOfVariablesMustBeNonNull( variableName, field.FieldName, field.TypeName) - .AddLocation(node) + .AddLocation([node]) .SetPath(context.CreateErrorPath()) .SetExtension(nameof(field), field.ToString()) .SpecifiedBy("sec-Oneof–Input-Objects-Have-Exactly-One-Field", rfc: 825) @@ -688,7 +687,7 @@ public static IError DeferAndStreamNotAllowedOnMutationOrSubscriptionRoot( ISelectionNode selection) => ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_DeferAndStreamNotAllowedOnMutationOrSubscriptionRoot) - .AddLocation(selection) + .AddLocation([selection]) .SpecifiedBy("sec-Defer-And-Stream-Directives-Are-Used-On-Valid-Root-Field") .Build(); @@ -698,7 +697,7 @@ public static IError DeferAndStreamDuplicateLabel( string label) => ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_DeferAndStreamDuplicateLabel) - .AddLocation(selection) + .AddLocation([selection]) .SpecifiedBy("sec-Defer-And-Stream-Directive-Labels-Are-Unique") .SetExtension(nameof(label), label) .SetPath(context.CreateErrorPath()) @@ -710,7 +709,7 @@ public static IError DeferAndStreamLabelIsVariable( string variable) => ErrorBuilder.New() .SetMessage(Resources.ErrorHelper_DeferAndStreamLabelIsVariable) - .AddLocation(selection) + .AddLocation([selection]) .SpecifiedBy("sec-Defer-And-Stream-Directive-Labels-Are-Unique") .SetExtension(nameof(variable),$"${variable}") .SetPath(context.CreateErrorPath()) @@ -721,7 +720,7 @@ public static IError StreamOnNonListField( ISyntaxNode selection) => ErrorBuilder.New() .SetMessage("@stream directive is only valid on list fields.") - .AddLocation(selection) + .AddLocation([selection]) .SpecifiedBy("sec-Stream-Directives-Are-Used-On-List-Fields") .SetPath(context.CreateErrorPath()) .Build(); diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs index 8d0630af68a..91d19676f49 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs @@ -107,7 +107,8 @@ public void FromError_WithLocations() // assert Assert.Equal("123", error.Message); - Assert.Collection(error.Locations, + Assert.Collection( + error.Locations!, t => Assert.Equal(1, t.Line)); } @@ -136,7 +137,7 @@ public void FromError_ErrorNull_ArgumentNullException() { // arrange // act - Action action = () => ErrorBuilder.FromError(null); + Action action = () => ErrorBuilder.FromError(null!); // assert Assert.Throws(action); @@ -147,7 +148,7 @@ public void SetMessage_MessageNull_ArgumentException() { // arrange // act - Action action = () => ErrorBuilder.New().SetMessage(null); + Action action = () => ErrorBuilder.New().SetMessage(null!); // assert Assert.Throws(action); @@ -221,7 +222,8 @@ public void AddLocation() .Build(); // assert - Assert.Collection(error.Locations, + Assert.Collection( + error.Locations!, t => Assert.Equal(2, t.Line)); } @@ -237,7 +239,8 @@ public void AddLocation2() .Build(); // assert - Assert.Collection(error.Locations, + Assert.Collection( + error.Locations!, t => Assert.Equal(2, t.Line), t => Assert.Equal(4, t.Line)); } @@ -254,7 +257,8 @@ public void AddLocation3() .Build(); // assert - Assert.Collection(error.Locations, + Assert.Collection( + error.Locations!, t => Assert.Equal(2, t.Line), t => Assert.Equal(4, t.Line)); } @@ -271,11 +275,12 @@ public void AddLocation_From_SyntaxNode() // act var error = ErrorBuilder.New() .SetMessage("bar") - .AddLocation(syntaxNode) + .AddLocation([syntaxNode]) .Build(); // assert - Assert.Collection(error.Locations, + Assert.Collection( + error.Locations!, t => Assert.Equal(3, t.Line)); } @@ -288,7 +293,7 @@ public void AddLocation_From_SyntaxNode_No_Location() // act var error = ErrorBuilder.New() .SetMessage("bar") - .AddLocation(syntaxNode) + .AddLocation([syntaxNode]) .Build(); // assert @@ -348,7 +353,8 @@ public void SetExtension() .Build(); // assert - Assert.Collection(error.Extensions.OrderBy(t => t.Key), + Assert.Collection( + error.Extensions!.OrderBy(t => t.Key), t => Assert.Equal("c", t.Value), t => Assert.Equal("d", t.Value)); } diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs index 84f33f98130..bec87fd3eb0 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs @@ -82,7 +82,8 @@ public void WithExtensions() new Dictionary { { "a", "b" }, }); // assert - Assert.Collection(error.Extensions, + Assert.Collection( + error.Extensions!, t => { Assert.Equal("a", t.Key); @@ -100,7 +101,8 @@ public void AddExtensions() error = error.SetExtension("a", "b").SetExtension("c", "d"); // assert - Assert.Collection(error.Extensions.OrderBy(t => t.Key), + Assert.Collection( + error.Extensions!.OrderBy(t => t.Key), t => { Assert.Equal("a", t.Key); @@ -129,7 +131,8 @@ public void RemoveExtensions() error = error.RemoveExtension("a"); // assert - Assert.Collection(error.Extensions, + Assert.Collection( + error.Extensions!, t => { Assert.Equal("c", t.Key); @@ -144,11 +147,11 @@ public void WithLocations() IError error = new Error("123"); // act - error = error.WithLocations( - new List { new Location(1, 2), }); + error = error.WithLocations(new List { new(1, 2), }); // assert - Assert.Collection(error.Locations, + Assert.Collection( + error.Locations!, t => { Assert.Equal(1, t.Line); @@ -176,7 +179,7 @@ public void WithMessage_MessageNull_ArgumentException() IError error = new Error("123"); // act - Action action = () => error.WithMessage(null); + Action action = () => error.WithMessage(null!); // assert Assert.Throws(action); @@ -205,43 +208,6 @@ public void WithPath() error = error.WithPath(Path.FromList("foo")); // assert - Assert.Equal("/foo", error.Path.Print()); - } - - [Fact] - public void WithSyntaxNode() - { - // arrange - IError error = new Error("123"); - - // act - error = error.WithSyntaxNode(new StringValueNode("Foo")); - - // assert - error.MatchSnapshot(); - } - - [Fact] - public void Constructor_WithSyntaxNode() - { - // arrange - // act - IError error = new Error("123", syntaxNode:new StringValueNode("Foo")); - - // assert - error.MatchSnapshot(); - } - - [Fact] - public void RemoveSyntaxNode() - { - // arrange - IError error = new Error("123", syntaxNode:new StringValueNode("Foo")); - - // act - error = error.RemoveSyntaxNode(); - - // assert - error.MatchSnapshot(); + Assert.Equal("/foo", error.Path!.Print()); } } diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs index f5222ab7881..1c072b8d07d 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs @@ -192,7 +192,7 @@ public void Optional_From_Struct_Is_Not_Set() public void Optional_From_DefaultValueAttribute_Provided() { const int defaultValue = 500; - Optional a = Optional.Empty(defaultValue); + var a = Optional.Empty(defaultValue); var b = Optional.From(a); Assert.False(a.HasValue); diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs index 2b025e09310..f74f8967aaa 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs @@ -55,7 +55,7 @@ public void GetValue_ValueIsFound(int capacity) objectResult.SetValueUnsafe(capacity - 1, "ghi", "def"); // act - ObjectFieldResult value = objectResult.TryGetValue("def", out var index); + var value = objectResult.TryGetValue("def", out var index); // assert Assert.Equal("def", value?.Name); diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Input_Field_Has_Different_Properties_Than_Defined.snap b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Input_Field_Has_Different_Properties_Than_Defined.snap index d8a97ee9b6c..5e3b9f37559 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Input_Field_Has_Different_Properties_Than_Defined.snap +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Input_Field_Has_Different_Properties_Than_Defined.snap @@ -16,7 +16,6 @@ "Extensions": { "type": "ReviewInput" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Is_Null_On_Non_Null_Variable.snap b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Is_Null_On_Non_Null_Variable.snap index 04fef4f98a7..a4817c189a4 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Is_Null_On_Non_Null_Variable.snap +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Is_Null_On_Non_Null_Variable.snap @@ -8,7 +8,6 @@ "code": "HC0018", "variable": "abc" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Type_Does_Not_Match_Variable_Type.snap b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Type_Does_Not_Match_Variable_Type.snap index 8650f2ed9d0..0fbb17fa3dc 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Type_Does_Not_Match_Variable_Type.snap +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_PlainValue_Type_Does_Not_Match_Variable_Type.snap @@ -14,7 +14,6 @@ }, "Locations": null, "Extensions": null, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Is_Null_On_Non_Null_Variable.snap b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Is_Null_On_Non_Null_Variable.snap index 04fef4f98a7..a4817c189a4 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Is_Null_On_Non_Null_Variable.snap +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Is_Null_On_Non_Null_Variable.snap @@ -8,7 +8,6 @@ "code": "HC0018", "variable": "abc" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Type_Does_Not_Match_Variable_Type.snap b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Type_Does_Not_Match_Variable_Type.snap index 3f6730bc0ab..234c3636c42 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Type_Does_Not_Match_Variable_Type.snap +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Error_When_Value_Type_Does_Not_Match_Variable_Type.snap @@ -14,7 +14,6 @@ }, "Locations": null, "Extensions": null, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Variable_Type_Is_Not_An_Input_Type.snap b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Variable_Type_Is_Not_An_Input_Type.snap index d577c15e60d..8f96b954af5 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Variable_Type_Is_Not_An_Input_Type.snap +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/__snapshots__/VariableCoercionHelperTests.Variable_Type_Is_Not_An_Input_Type.snap @@ -9,7 +9,6 @@ "variable": "abc", "type": "Human" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs index c528ecdeb24..b10de35da0a 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs @@ -16,7 +16,7 @@ public class InlineBatchDataLoaderTests public async Task LoadWithDifferentDataLoader() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -34,7 +34,7 @@ public async Task LoadWithDifferentDataLoader() public async Task LoadWithDifferentDataLoader_ShortHand() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -52,7 +52,7 @@ public async Task LoadWithDifferentDataLoader_ShortHand() public async Task LoadWithSingleKeyDataLoader() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -70,7 +70,7 @@ public async Task LoadWithSingleKeyDataLoader() public async Task LoadWithSingleKeyDataLoader_ShortHand() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() diff --git a/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs index 24d9cb34616..f5b54e2688b 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs @@ -14,7 +14,7 @@ public class InlineCacheDataLoaderTests public async Task LoadWithDifferentDataLoader() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -32,7 +32,7 @@ public async Task LoadWithDifferentDataLoader() public async Task LoadWithDifferentDataLoader_ShortHand() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -50,7 +50,7 @@ public async Task LoadWithDifferentDataLoader_ShortHand() public async Task LoadWithSingleKeyDataLoader() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -68,7 +68,7 @@ public async Task LoadWithSingleKeyDataLoader() public async Task LoadWithSingleKeyDataLoader_ShortHand() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -86,7 +86,7 @@ public async Task LoadWithSingleKeyDataLoader_ShortHand() public async Task CacheOnce() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() diff --git a/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs index 8fc8b49bf77..9c95b14bfd0 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs @@ -16,7 +16,7 @@ public class InlineGroupDataLoaderTests public async Task LoadWithDifferentDataLoader() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -34,7 +34,7 @@ public async Task LoadWithDifferentDataLoader() public async Task LoadWithDifferentDataLoader_ShortHand() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -52,7 +52,7 @@ public async Task LoadWithDifferentDataLoader_ShortHand() public async Task LoadWithSingleKeyDataLoader() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() @@ -70,7 +70,7 @@ public async Task LoadWithSingleKeyDataLoader() public async Task LoadWithSingleKeyDataLoader_ShortHand() { // arrange - IRequestExecutor executor = + var executor = await new ServiceCollection() .AddGraphQL() .AddQueryType() diff --git a/src/HotChocolate/Core/test/StarWars/Data/CharacterRepository.cs b/src/HotChocolate/Core/test/StarWars/Data/CharacterRepository.cs index 97138e36fc2..746fffd13f3 100644 --- a/src/HotChocolate/Core/test/StarWars/Data/CharacterRepository.cs +++ b/src/HotChocolate/Core/test/StarWars/Data/CharacterRepository.cs @@ -32,7 +32,7 @@ public ICharacter GetHeroByTraits(JsonElement traits) public ICharacter GetCharacter(string id) { - if (_characters.TryGetValue(id, out ICharacter c)) + if (_characters.TryGetValue(id, out var c)) { return c; } @@ -41,7 +41,7 @@ public ICharacter GetCharacter(string id) public Human GetHuman(string id) { - if (_characters.TryGetValue(id, out ICharacter c) + if (_characters.TryGetValue(id, out var c) && c is Human h) { return h; @@ -51,7 +51,7 @@ public Human GetHuman(string id) public Droid GetDroid(string id) { - if (_characters.TryGetValue(id, out ICharacter c) + if (_characters.TryGetValue(id, out var c) && c is Droid d) { return d; @@ -61,18 +61,18 @@ public Droid GetDroid(string id) public IEnumerable Search(string text) { - IEnumerable filteredCharacters = _characters.Values + var filteredCharacters = _characters.Values .Where(t => t.Name.Contains(text)); - foreach (ICharacter character in filteredCharacters) + foreach (var character in filteredCharacters) { yield return character; } - IEnumerable filteredStarships = _starships.Values + var filteredStarships = _starships.Values .Where(t => t.Name.Contains(text)); - foreach (Starship starship in filteredStarships) + foreach (var starship in filteredStarships) { yield return starship; } diff --git a/src/HotChocolate/Core/test/StarWars/Data/ReviewRepository.cs b/src/HotChocolate/Core/test/StarWars/Data/ReviewRepository.cs index 46b5603309f..8ed10596c69 100644 --- a/src/HotChocolate/Core/test/StarWars/Data/ReviewRepository.cs +++ b/src/HotChocolate/Core/test/StarWars/Data/ReviewRepository.cs @@ -11,7 +11,7 @@ public class ReviewRepository public void AddReview(Episode episode, Review review) { - if (!_data.TryGetValue(episode, out List reviews)) + if (!_data.TryGetValue(episode, out var reviews)) { reviews = []; _data[episode] = reviews; @@ -22,7 +22,7 @@ public void AddReview(Episode episode, Review review) public IEnumerable GetReviews(Episode episode) { - if (_data.TryGetValue(episode, out List reviews)) + if (_data.TryGetValue(episode, out var reviews)) { return reviews; } diff --git a/src/HotChocolate/Core/test/StarWars/Query.cs b/src/HotChocolate/Core/test/StarWars/Query.cs index d6f34dc066f..48267d091c3 100644 --- a/src/HotChocolate/Core/test/StarWars/Query.cs +++ b/src/HotChocolate/Core/test/StarWars/Query.cs @@ -45,7 +45,7 @@ public IReadOnlyList GetHeroes(IReadOnlyList episodes) { var list = new List(); - foreach (Episode episode in episodes) + foreach (var episode in episodes) { list.Add(_repository.GetHero(episode)); } @@ -77,7 +77,7 @@ public IEnumerable GetCharacter(string[] characterIds, IResolverCont { foreach (var characterId in characterIds) { - ICharacter character = _repository.GetCharacter(characterId); + var character = _repository.GetCharacter(characterId); if (character is null) { diff --git a/src/HotChocolate/Core/test/StarWars/Resolvers/SharedResolvers.cs b/src/HotChocolate/Core/test/StarWars/Resolvers/SharedResolvers.cs index 8c42b9a4acf..0e67db3e84b 100644 --- a/src/HotChocolate/Core/test/StarWars/Resolvers/SharedResolvers.cs +++ b/src/HotChocolate/Core/test/StarWars/Resolvers/SharedResolvers.cs @@ -11,9 +11,9 @@ public IEnumerable GetCharacter( [Parent] ICharacter character, [Service] CharacterRepository repository) { - foreach (string friendId in character.Friends) + foreach (var friendId in character.Friends) { - ICharacter friend = repository.GetCharacter(friendId); + var friend = repository.GetCharacter(friendId); if (friend != null) { yield return friend; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs index a9b4faf66b1..955e1900a8e 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs @@ -39,28 +39,28 @@ public DateTimeZoneTypeIntegrationTests() [Fact] public void QueryReturnsUtc() { - IExecutionResult result = testExecutor.Execute("query { test: utc }"); + var result = testExecutor.Execute("query { test: utc }"); Assert.Equal("UTC", Assert.IsType(result).Data!["test"]); } [Fact] public void QueryReturnsRome() { - IExecutionResult result = testExecutor.Execute("query { test: rome }"); + var result = testExecutor.Execute("query { test: rome }"); Assert.Equal("Europe/Rome", Assert.IsType(result).Data!["test"]); } [Fact] public void QueryReturnsChihuahua() { - IExecutionResult result = testExecutor.Execute("query { test: chihuahua }"); + var result = testExecutor.Execute("query { test: chihuahua }"); Assert.Equal("America/Chihuahua", Assert.IsType(result).Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: DateTimeZone!) { test(arg: $arg) }") .SetVariableValue("arg", "Europe/Amsterdam") @@ -71,7 +71,7 @@ public void ParsesVariable() [Fact] public void DoesntParseIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: DateTimeZone!) { test(arg: $arg) }") .SetVariableValue("arg", "Europe/Hamster") @@ -83,7 +83,7 @@ public void DoesntParseIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"Europe/Amsterdam\") }") .Create()); @@ -93,7 +93,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"Europe/Hamster\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs index 0ef66b32d1b..edbd4ba755d 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs @@ -53,49 +53,49 @@ public DurationTypeJsonRoundtripIntegrationTests() [Fact] public void QueryReturnsSerializedDataWithDecimals() { - IExecutionResult result = testExecutor.Execute("query { test: positiveWithDecimals }"); + var result = testExecutor.Execute("query { test: positiveWithDecimals }"); Assert.Equal("2959:53:10.019", Assert.IsType(result).Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithNegativeValue() { - IExecutionResult result = testExecutor.Execute("query { test: negativeWithDecimals }"); + var result = testExecutor.Execute("query { test: negativeWithDecimals }"); Assert.Equal("-2959:53:10.019", Assert.IsType(result).Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithoutDecimals() { - IExecutionResult result = testExecutor.Execute("query { test: positiveWithoutDecimals }"); + var result = testExecutor.Execute("query { test: positiveWithoutDecimals }"); Assert.Equal("2959:53:10", Assert.IsType(result).Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithoutSeconds() { - IExecutionResult result = testExecutor.Execute("query { test: positiveWithoutSeconds }"); + var result = testExecutor.Execute("query { test: positiveWithoutSeconds }"); Assert.Equal("2959:53:00", Assert.IsType(result).Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithoutMinutes() { - IExecutionResult result = testExecutor.Execute("query { test: positiveWithoutMinutes }"); + var result = testExecutor.Execute("query { test: positiveWithoutMinutes }"); Assert.Equal("2959:00:00", Assert.IsType(result).Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithRoundtrip() { - IExecutionResult result = testExecutor.Execute("query { test: positiveWithRoundtrip }"); + var result = testExecutor.Execute("query { test: positiveWithRoundtrip }"); Assert.Equal("2978:01:10", Assert.IsType(result).Data!["test"]); } [Fact] public void MutationParsesInputWithDecimals() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "238:01:00.019") @@ -106,7 +106,7 @@ public void MutationParsesInputWithDecimals() [Fact] public void MutationParsesInputWithoutDecimals() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "238:01:00") @@ -117,7 +117,7 @@ public void MutationParsesInputWithoutDecimals() [Fact] public void MutationParsesInputWithoutLeadingZero() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "238:01:00") @@ -128,7 +128,7 @@ public void MutationParsesInputWithoutLeadingZero() [Fact] public void MutationParsesInputWithNegativeValue() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "-238:01:00") @@ -139,7 +139,7 @@ public void MutationParsesInputWithNegativeValue() [Fact] public void MutationDoesntParseInputWithPlusSign() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "+09:22:01:00") @@ -151,7 +151,7 @@ public void MutationDoesntParseInputWithPlusSign() [Fact] public void MutationParsesLiteralWithDecimals() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"238:01:00.019\") }") .Create()); @@ -161,7 +161,7 @@ public void MutationParsesLiteralWithDecimals() [Fact] public void MutationParsesLiteralWithoutDecimals() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"238:01:00\") }") .Create()); @@ -171,7 +171,7 @@ public void MutationParsesLiteralWithoutDecimals() [Fact] public void MutationParsesLiteralWithoutLeadingZero() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"238:01:00\") }") .Create()); @@ -181,7 +181,7 @@ public void MutationParsesLiteralWithoutLeadingZero() [Fact] public void MutationParsesLiteralWithNegativeValue() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"-238:01:00\") }") .Create()); @@ -191,7 +191,7 @@ public void MutationParsesLiteralWithNegativeValue() [Fact] public void MutationDoesntParseLiteralWithPlusSign() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"+238:01:00\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs index b46510b3ed3..fe8c288738d 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs @@ -47,49 +47,49 @@ public DurationTypeIntegrationTests() [Fact] public void QueryReturnsSerializedDataWithDecimals() { - IExecutionResult result = _testExecutor.Execute("query { test: positiveWithDecimals }"); + var result = _testExecutor.Execute("query { test: positiveWithDecimals }"); Assert.Equal("123:07:53:10.019", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithNegativeValue() { - IExecutionResult result = _testExecutor.Execute("query{test: negativeWithDecimals}"); + var result = _testExecutor.Execute("query{test: negativeWithDecimals}"); Assert.Equal("-123:07:53:10.019", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithoutDecimals() { - IExecutionResult result = _testExecutor.Execute("query{test: positiveWithoutDecimals}"); + var result = _testExecutor.Execute("query{test: positiveWithoutDecimals}"); Assert.Equal("123:07:53:10", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithoutSeconds() { - IExecutionResult result = _testExecutor.Execute("query{test:positiveWithoutSeconds}"); + var result = _testExecutor.Execute("query{test:positiveWithoutSeconds}"); Assert.Equal("123:07:53:00", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithoutMinutes() { - IExecutionResult result = _testExecutor.Execute("query{test:positiveWithoutMinutes}"); + var result = _testExecutor.Execute("query{test:positiveWithoutMinutes}"); Assert.Equal("123:07:00:00", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsSerializedDataWithRoundtrip() { - IExecutionResult result = _testExecutor.Execute("query{test:positiveWithRoundtrip}"); + var result = _testExecutor.Execute("query{test:positiveWithRoundtrip}"); Assert.Equal("124:02:01:10", result.ExpectQueryResult().Data!["test"]); } [Fact] public void MutationParsesInputWithDecimals() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "09:22:01:00.019") @@ -100,7 +100,7 @@ public void MutationParsesInputWithDecimals() [Fact] public void MutationParsesInputWithoutDecimals() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "09:22:01:00") @@ -111,7 +111,7 @@ public void MutationParsesInputWithoutDecimals() [Fact] public void MutationParsesInputWithoutLeadingZero() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "9:22:01:00") @@ -122,7 +122,7 @@ public void MutationParsesInputWithoutLeadingZero() [Fact] public void MutationParsesInputWithNegativeValue() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "-9:22:01:00") @@ -133,7 +133,7 @@ public void MutationParsesInputWithNegativeValue() [Fact] public void MutationDoesntParseInputWithPlusSign() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "+09:22:01:00") @@ -145,7 +145,7 @@ public void MutationDoesntParseInputWithPlusSign() [Fact] public void MutationDoesntParseInputWithOverflownHours() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Duration!) { test(arg: $arg) }") .SetVariableValue("arg", "9:26:01:00") @@ -157,7 +157,7 @@ public void MutationDoesntParseInputWithOverflownHours() [Fact] public void MutationParsesLiteralWithDecimals() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"09:22:01:00.019\") }") .Create()); @@ -168,7 +168,7 @@ public void MutationParsesLiteralWithDecimals() [Fact] public void MutationParsesLiteralWithoutDecimals() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"09:22:01:00\") }") .Create()); @@ -179,7 +179,7 @@ public void MutationParsesLiteralWithoutDecimals() [Fact] public void MutationParsesLiteralWithoutLeadingZero() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"09:22:01:00\") }") .Create()); @@ -190,7 +190,7 @@ public void MutationParsesLiteralWithoutLeadingZero() [Fact] public void MutationParsesLiteralWithNegativeValue() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"-9:22:01:00\") }") .Create()); @@ -201,7 +201,7 @@ public void MutationParsesLiteralWithNegativeValue() [Fact] public void MutationDoesntParseLiteralWithPlusSign() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"+09:22:01:00\") }") .Create()); @@ -213,7 +213,7 @@ public void MutationDoesntParseLiteralWithPlusSign() [Fact] public void MutationDoesntParseLiteralWithOverflownHours() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"9:26:01:00\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs index 91868df5bdd..b05460e6936 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs @@ -52,7 +52,7 @@ public InstantTypeDateTimeOffsetIntegrationTests() [Fact] public void QueryReturnsUtc() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal( "2020-02-20T17:42:59.000001234Z", @@ -62,7 +62,7 @@ public void QueryReturnsUtc() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Instant!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21T17:42:59.000001234Z") @@ -76,7 +76,7 @@ public void ParsesVariable() [Fact] public void DoesParseAnIncorrectExtendedVariableAsDateTimeOffset() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Instant!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59") @@ -88,7 +88,7 @@ public void DoesParseAnIncorrectExtendedVariableAsDateTimeOffset() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59.000001234Z\") }") .Create()); @@ -101,7 +101,7 @@ public void ParsesLiteral() [Fact] public void DoesParseIncorrectExtendedLiteralAsDateTimeOffset() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs index 29377f2b08b..6f82496b625 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs @@ -22,7 +22,7 @@ public InstantTypeGeneralIntegrationTests() [Fact] public void QueryReturnsUtc() { - IExecutionResult result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("2020-02-20T17:42:59Z", result.ExpectQueryResult().Data!["test"]); } @@ -30,7 +30,7 @@ public void QueryReturnsUtc() [Fact] public void ParsesVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Instant!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21T17:42:59Z") @@ -42,7 +42,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Instant!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59") @@ -55,7 +55,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59Z\") }") .Create()); @@ -66,7 +66,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs index 58a2c832a5a..2d6a0ef80e2 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs @@ -39,7 +39,7 @@ public InstantTypeIntegrationTests() [Fact] public void QueryReturnsUtc() { - IExecutionResult result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal( "2020-02-20T17:42:59.000001234Z", @@ -49,7 +49,7 @@ public void QueryReturnsUtc() [Fact] public void ParsesVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Instant!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21T17:42:59.000001234Z") @@ -63,7 +63,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Instant!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59") @@ -76,7 +76,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59.000001234Z\") }") .Create()); @@ -89,7 +89,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs index 623484f3338..6b5bc30371e 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs @@ -42,7 +42,7 @@ public IsoDayOfWeekTypeIntegrationTests() [Fact] public void QueryReturnsMonday() { - IExecutionResult? result = testExecutor.Execute("query { test: monday }"); + var result = testExecutor.Execute("query { test: monday }"); Assert.Equal(1, result.ExpectQueryResult().Data!["test"]); } @@ -50,7 +50,7 @@ public void QueryReturnsMonday() [Fact] public void QueryReturnsSunday() { - IExecutionResult? result = testExecutor.Execute("query { test: sunday }"); + var result = testExecutor.Execute("query { test: sunday }"); Assert.Equal(7, result.ExpectQueryResult().Data!["test"]); } @@ -58,7 +58,7 @@ public void QueryReturnsSunday() [Fact] public void QueryReturnsFriday() { - IExecutionResult? result = testExecutor.Execute("query { test: friday }"); + var result = testExecutor.Execute("query { test: friday }"); Assert.Equal(5, result.ExpectQueryResult().Data!["test"]); } @@ -66,7 +66,7 @@ public void QueryReturnsFriday() [Fact] public void QueryDoesntReturnNone() { - IExecutionResult? result = testExecutor.Execute("query { test: none }"); + var result = testExecutor.Execute("query { test: none }"); Assert.Null(result.ExpectQueryResult().Data); Assert.NotEmpty(result.ExpectQueryResult().Errors); @@ -75,7 +75,7 @@ public void QueryDoesntReturnNone() [Fact] public void MutationParsesMonday() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: IsoDayOfWeek!) { test(arg: $arg) }") .SetVariableValue("arg", 1) @@ -87,7 +87,7 @@ public void MutationParsesMonday() [Fact] public void MutationParsesSunday() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: IsoDayOfWeek!) { test(arg: $arg) }") .SetVariableValue("arg", 7) @@ -99,7 +99,7 @@ public void MutationParsesSunday() [Fact] public void MutationDoesntParseZero() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: IsoDayOfWeek!) { test(arg: $arg) }") .SetVariableValue("arg", 0) @@ -112,7 +112,7 @@ public void MutationDoesntParseZero() [Fact] public void MutationDoesntParseEight() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: IsoDayOfWeek!) { test(arg: $arg) }") .SetVariableValue("arg", 8) @@ -125,7 +125,7 @@ public void MutationDoesntParseEight() [Fact] public void MutationDoesntParseNegativeNumbers() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: IsoDayOfWeek!) { test(arg: $arg) }") .SetVariableValue("arg", -2) diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs index 7f7e4e546a1..0ab1f0f3a60 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs @@ -21,7 +21,7 @@ public LocalDateTimeTypeFullRoundtripIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal( "2020-02-07T17:42:59.000001234 (Julian)", @@ -31,7 +31,7 @@ public void QueryReturns() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21T17:42:59.000001234 (Julian)") @@ -45,7 +45,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59Z") @@ -58,7 +58,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59.000001234 (Julian)\") }") .Create()); @@ -71,7 +71,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59Z\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs index 2ae4dc83053..35b64c2f063 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs @@ -21,7 +21,7 @@ public LocalDateTimeTypeGeneralIsoIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("2020-02-07T17:42:59", result.ExpectQueryResult().Data!["test"]); } @@ -29,7 +29,7 @@ public void QueryReturns() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21T17:42:59") @@ -41,7 +41,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59Z") @@ -54,7 +54,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59\") }") .Create()); @@ -65,7 +65,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59Z\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs index 34c6318d068..e5c1615126e 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs @@ -43,7 +43,7 @@ public LocalDateTimeTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult result = _testExecutor.Execute("query { test: one }"); + var result = _testExecutor.Execute("query { test: one }"); Assert.Equal("2020-02-07T17:42:59.000001234", result.ExpectQueryResult().Data!["test"]); } @@ -51,7 +51,7 @@ public void QueryReturns() [Fact] public void ParsesVariable() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21T17:42:59.000001234") @@ -63,7 +63,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59.000001234Z") @@ -76,7 +76,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59.000001234\") }") .Create()); @@ -87,7 +87,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59.000001234Z\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs index c59e2e8ddfa..e13d8f69c33 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs @@ -21,7 +21,7 @@ public LocalDateTypeFullRoundtripIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("5780-05-25 (Hebrew Civil)", result.ExpectQueryResult().Data!["test"]); } @@ -29,7 +29,7 @@ public void QueryReturns() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21 (Hebrew Civil)") @@ -41,7 +41,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59 (Hebrew Civil)") @@ -54,7 +54,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20 (Hebrew Civil)\") }") .Create()); @@ -65,7 +65,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59 (Hebrew Civil)\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs index c21a0d910b5..a5902927d73 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs @@ -40,7 +40,7 @@ public LocalDateTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("5780-05-25", result.ExpectQueryResult().Data!["test"]); } @@ -48,7 +48,7 @@ public void QueryReturns() [Fact] public void ParsesVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-21") @@ -60,7 +60,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-02-20T17:42:59") @@ -73,7 +73,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20\") }") .Create()); @@ -84,7 +84,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-02-20T17:42:59\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs index 5395e9299e1..bbeeff8d36a 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs @@ -20,7 +20,7 @@ public LocalTimeTypeGeneralIsoIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("12:42:13", result.ExpectQueryResult().Data!["test"]); } @@ -28,7 +28,7 @@ public void QueryReturns() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalTime!) { test(arg: $arg) }") .SetVariableValue("arg", "12:42:13") @@ -40,7 +40,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalTime!) { test(arg: $arg) }") .SetVariableValue("arg", "12:42") @@ -53,7 +53,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"12:42:13\") }") .Create()); @@ -64,7 +64,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"12:42\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs index 1a82b2d9750..d7a9d505501 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs @@ -40,7 +40,7 @@ public LocalTimeTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("12:42:13.031011234", result.ExpectQueryResult().Data!["test"]); } @@ -48,7 +48,7 @@ public void QueryReturns() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalTime!) { test(arg: $arg) }") .SetVariableValue("arg", "12:42:13.031011234") @@ -60,7 +60,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithoutTicks() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalTime!) { test(arg: $arg) }") .SetVariableValue("arg", "12:42:13") @@ -72,7 +72,7 @@ public void ParsesVariableWithoutTicks() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: LocalTime!) { test(arg: $arg) }") .SetVariableValue("arg", "12:42") @@ -85,7 +85,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"12:42:13.031011234\") }") .Create()); @@ -96,7 +96,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithoutTick() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"12:42:13\") }") .Create()); @@ -107,7 +107,7 @@ public void ParsesLiteralWithoutTick() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"12:42\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs index aa73b9acee4..810ca8e3636 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs @@ -21,7 +21,7 @@ public OffsetDateTimeTypeExtendedIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal("2020-12-31T18:30:13.000001234+02", result.ExpectQueryResult().Data!["test"]); } @@ -29,7 +29,7 @@ public void QueryReturns() [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("2020-12-31T18:30:13.000001234+02:30", result.ExpectQueryResult().Data!["test"]); } @@ -37,7 +37,7 @@ public void QueryReturnsWithMinutes() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13+02") @@ -49,7 +49,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13+02:35") @@ -61,7 +61,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13") @@ -74,7 +74,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13+02\") }") .Create()); @@ -85,7 +85,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13+02:35\") }") .Create()); @@ -96,7 +96,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs index 2014ed74488..e7dc5dd385f 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs @@ -21,21 +21,21 @@ public OffsetDateTimeTypeGeneralIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal("2020-12-31T18:30:13+02", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("2020-12-31T18:30:13+02:30", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13+02") @@ -46,7 +46,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13+02:35") @@ -57,7 +57,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13") @@ -69,7 +69,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13+02\") }") .Create()); @@ -79,7 +79,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13+02:35\") }") .Create()); @@ -89,7 +89,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs index 1a63b3a2ca4..70c23628d54 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs @@ -21,7 +21,7 @@ public OffsetDateTimeTypeRfc3339IntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal( "2020-12-31T18:30:13.000001234+02:00", @@ -31,7 +31,7 @@ public void QueryReturns() [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal( "2020-12-31T18:30:13.000001234+02:30", @@ -41,7 +41,7 @@ public void QueryReturnsWithMinutes() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13.000001234+02:00") @@ -55,7 +55,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13+02:35") @@ -67,7 +67,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13") @@ -80,7 +80,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13.000001234+02:00\") }") .Create()); @@ -93,7 +93,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13+02:35\") }") .Create()); @@ -104,7 +104,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs index 8ccf550c882..967f00355f0 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs @@ -62,7 +62,7 @@ public OffsetDateTimeTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal("2020-12-31T18:30:13+02", result.ExpectQueryResult().Data!["test"]); } @@ -70,7 +70,7 @@ public void QueryReturns() [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("2020-12-31T18:30:13+02:30", result.ExpectQueryResult().Data!["test"]); } @@ -78,7 +78,7 @@ public void QueryReturnsWithMinutes() [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13+02") @@ -90,7 +90,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13+02:35") @@ -102,7 +102,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T18:30:13") @@ -115,7 +115,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13+02\") }") .Create()); @@ -126,7 +126,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13+02:35\") }") .Create()); @@ -137,7 +137,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T18:30:13\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs index a1996341219..e6a92ad6ad6 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs @@ -21,7 +21,7 @@ public OffsetDateTypeFullRoundtripIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal("2020-12-31+02 (Gregorian)", result.ExpectQueryResult()!.Data!["test"]); } @@ -29,7 +29,7 @@ public void QueryReturns() [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("2020-12-31+02:35 (Gregorian)", result.ExpectQueryResult()!.Data!["test"]); } @@ -37,7 +37,7 @@ public void QueryReturnsWithMinutes() [Fact] public void ParsesVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31+02 (Gregorian)") @@ -49,7 +49,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31+02:35 (Gregorian)") @@ -61,7 +61,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31 (Gregorian)") @@ -74,7 +74,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31+02 (Gregorian)\") }") .Create()); @@ -85,7 +85,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31+02:35 (Gregorian)\") }") .Create()); @@ -96,7 +96,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31 (Gregorian)\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs index a0be627d400..9f3d061b401 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs @@ -43,21 +43,21 @@ public OffsetDateTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult result = _testExecutor.Execute("query { test: hours }"); + var result = _testExecutor.Execute("query { test: hours }"); Assert.Equal("2020-12-31+02", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult result = _testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = _testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("2020-12-31+02:35", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31+02") @@ -68,7 +68,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31+02:35") @@ -79,7 +79,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetDate!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31") @@ -91,7 +91,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31+02\") }") .Create()); @@ -101,7 +101,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31+02:35\") }") .Create()); @@ -111,7 +111,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs index 775ca2f3779..cd6c307c82a 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs @@ -21,7 +21,7 @@ public OffsetTimeTypeExtendedIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal("18:30:13.010011234+02", result.ExpectQueryResult().Data!["test"]); } @@ -29,7 +29,7 @@ public void QueryReturns() [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("18:30:13.010011234+02:35", result.ExpectQueryResult().Data!["test"]); } @@ -37,7 +37,7 @@ public void QueryReturnsWithMinutes() [Fact] public void ParsesVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13.010011234+02") @@ -49,7 +49,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13.010011234+02:35") @@ -61,7 +61,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13.010011234") @@ -74,7 +74,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13.010011234+02\") }") .Create()); @@ -85,7 +85,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13.010011234+02:35\") }") .Create()); @@ -96,7 +96,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13.010011234\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs index 0270bdf3362..cd187a6a068 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs @@ -21,21 +21,21 @@ public OffsetTimeTypeRfc3339IntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal("18:30:13.010011234+02:00", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("18:30:13.010011234+02:35", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13.010011234+02:00") @@ -47,7 +47,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13.010011234+02:35") @@ -58,7 +58,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13.010011234+02") @@ -70,7 +70,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13.010011234+02:00\") }") .Create()); @@ -80,7 +80,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13.010011234+02:35\") }") .Create()); @@ -90,7 +90,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13.010011234+02\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs index 4c3b9273eea..f1666015973 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs @@ -47,21 +47,21 @@ public OffsetTimeTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = _testExecutor.Execute("query { test: hours }"); + var result = _testExecutor.Execute("query { test: hours }"); Assert.Equal("18:30:13+02", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = _testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = _testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("18:30:13+02:35", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13+02") @@ -72,7 +72,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13+02:35") @@ -83,7 +83,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: OffsetTime!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13") @@ -95,7 +95,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13+02\") }") .Create()); @@ -105,7 +105,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13+02:35\") }") .Create()); @@ -115,7 +115,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs index 0c9143d416b..35091db71be 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs @@ -21,28 +21,28 @@ public OffsetTypeGeneralInvariantWithoutZIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = _testExecutor.Execute("query { test: hours }"); + var result = _testExecutor.Execute("query { test: hours }"); Assert.Equal("+02", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = _testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = _testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("+02:35", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithZ() { - IExecutionResult? result = _testExecutor.Execute("query { test: zOffset }"); + var result = _testExecutor.Execute("query { test: zOffset }"); Assert.Equal("+00", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Offset!) { test(arg: $arg) }") .SetVariableValue("arg", "+02") @@ -53,7 +53,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Offset!) { test(arg: $arg) }") .SetVariableValue("arg", "+02:35") @@ -64,7 +64,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Offset!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13+02") @@ -76,7 +76,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"+02\") }") .Create()); @@ -87,7 +87,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"+02:35\") }") .Create()); @@ -97,7 +97,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void ParsesLiteralWithZero() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"+00\") }") .Create()); @@ -107,7 +107,7 @@ public void ParsesLiteralWithZero() [Fact] public void DoesntParseLiteralWithZ() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"Z\") }") .Create()); @@ -122,7 +122,7 @@ public void DoesntParseLiteralWithZ() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13+02\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs index 6ba698b5eab..55118b0874b 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs @@ -38,28 +38,28 @@ public OffsetTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: hours }"); + var result = testExecutor.Execute("query { test: hours }"); Assert.Equal("+02", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithMinutes() { - IExecutionResult? result = testExecutor.Execute("query { test: hoursAndMinutes }"); + var result = testExecutor.Execute("query { test: hoursAndMinutes }"); Assert.Equal("+02:35", result.ExpectQueryResult().Data!["test"]); } [Fact] public void QueryReturnsWithZ() { - IExecutionResult? result = testExecutor.Execute("query { test: zOffset }"); + var result = testExecutor.Execute("query { test: zOffset }"); Assert.Equal("Z", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Offset!) { test(arg: $arg) }") .SetVariableValue("arg", "+02") @@ -70,7 +70,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Offset!) { test(arg: $arg) }") .SetVariableValue("arg", "+02:35") @@ -81,7 +81,7 @@ public void ParsesVariableWithMinutes() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Offset!) { test(arg: $arg) }") .SetVariableValue("arg", "18:30:13+02") @@ -93,7 +93,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"+02\") }") .Create()); @@ -103,7 +103,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithMinutes() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"+02:35\") }") .Create()); @@ -113,7 +113,7 @@ public void ParsesLiteralWithMinutes() [Fact] public void ParsesLiteralWithZ() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"Z\") }") .Create()); @@ -123,7 +123,7 @@ public void ParsesLiteralWithZ() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"18:30:13+02\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs index 19b6bc4e0bd..f20e9ab6e03 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs @@ -21,14 +21,14 @@ public PeriodTypeNormalizingIsoIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("P-17DT-23H-59M-59.9999861S", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Period!) { test(arg: $arg) }") .SetVariableValue("arg", "P-17DT-23H-59M-59.9999861S") @@ -39,7 +39,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Period!) { test(arg: $arg) }") .SetVariableValue("arg", "-P-17DT-23H-59M-59.9999861S") @@ -51,7 +51,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"P-17DT-23H-59M-59.9999861S\") }") .Create()); @@ -61,7 +61,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"-P-17DT-23H-59M-59.9999861S\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs index fb3187287e9..1c3dfdaec42 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs @@ -37,14 +37,14 @@ public PeriodTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult? result = testExecutor.Execute("query { test: one }"); + var result = testExecutor.Execute("query { test: one }"); Assert.Equal("P-3W3DT139t", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Period!) { test(arg: $arg) }") .SetVariableValue("arg", "P-3W15DT139t") @@ -55,7 +55,7 @@ public void ParsesVariable() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: Period!) { test(arg: $arg) }") .SetVariableValue("arg", "-3W3DT-10M139t") @@ -67,7 +67,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"P-3W15DT139t\") }") .Create()); @@ -77,7 +77,7 @@ public void ParsesLiteral() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult? result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"-3W3DT-10M139t\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs index cf2cc8d510f..f1041005df7 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs @@ -26,7 +26,7 @@ public ZonedDateTimeTypeCustomIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult result = _testExecutor.Execute("query { test: rome }"); + var result = _testExecutor.Execute("query { test: rome }"); Assert.Equal( "2020-12-31T18:30:13 Asia/Kathmandu (+05:45)", result.ExpectQueryResult().Data!["test"]); @@ -35,14 +35,14 @@ public void QueryReturns() [Fact] public void QueryReturnsUtc() { - IExecutionResult result = _testExecutor.Execute("query { test: utc }"); + var result = _testExecutor.Execute("query { test: utc }"); Assert.Equal("2020-12-31T18:30:13 UTC (+00)", result.ExpectQueryResult().Data!["test"]); } [Fact] public void ParsesVariable() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: ZonedDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T19:30:13 Asia/Kathmandu (+05:45)") @@ -56,7 +56,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithUTC() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: ZonedDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T19:30:13 UTC (+00)") @@ -68,7 +68,7 @@ public void ParsesVariableWithUTC() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: ZonedDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T19:30:13 (UTC)") @@ -81,7 +81,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery( @"mutation @@ -98,7 +98,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithUTC() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T19:30:13 UTC (+00)\") }") .Create()); @@ -109,7 +109,7 @@ public void ParsesLiteralWithUTC() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = _testExecutor + var result = _testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T19:30:13 (UTC)\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs index f4fcec9d97a..3d4178f0501 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs @@ -48,7 +48,7 @@ public ZonedDateTimeTypeIntegrationTests() [Fact] public void QueryReturns() { - IExecutionResult result = testExecutor.Execute("query { test: rome }"); + var result = testExecutor.Execute("query { test: rome }"); Assert.Equal( "2020-12-31T18:30:13 Asia/Kathmandu +05:45", Assert.IsType(result).Data!["test"]); @@ -57,7 +57,7 @@ public void QueryReturns() [Fact] public void QueryReturnsUtc() { - IExecutionResult result = testExecutor.Execute("query { test: utc }"); + var result = testExecutor.Execute("query { test: utc }"); Assert.Equal( "2020-12-31T18:30:13 UTC +00", Assert.IsType(result).Data!["test"]); @@ -66,7 +66,7 @@ public void QueryReturnsUtc() [Fact] public void ParsesVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: ZonedDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T19:30:13 Asia/Kathmandu +05:45") @@ -79,7 +79,7 @@ public void ParsesVariable() [Fact] public void ParsesVariableWithUTC() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: ZonedDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T19:30:13 UTC +00") @@ -92,7 +92,7 @@ public void ParsesVariableWithUTC() [Fact] public void DoesntParseAnIncorrectVariable() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation($arg: ZonedDateTime!) { test(arg: $arg) }") .SetVariableValue("arg", "2020-12-31T19:30:13 UTC") @@ -104,7 +104,7 @@ public void DoesntParseAnIncorrectVariable() [Fact] public void ParsesLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation{test(arg:\"2020-12-31T19:30:13 Asia/Kathmandu +05:45\")}") .Create()); @@ -116,7 +116,7 @@ public void ParsesLiteral() [Fact] public void ParsesLiteralWithUTC() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T19:30:13 UTC +00\") }") .Create()); @@ -126,7 +126,7 @@ public void ParsesLiteralWithUTC() [Fact] public void DoesntParseIncorrectLiteral() { - IExecutionResult result = testExecutor + var result = testExecutor .Execute(QueryRequestBuilder.New() .SetQuery("mutation { test(arg: \"2020-12-31T19:30:13 UTC\") }") .Create()); diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs index ca8f5b65066..ce427e0e0f0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs @@ -66,7 +66,7 @@ internal class Middleware public async Task InvokeAsync(IMiddlewareContext context) { - IFieldCollection arguments = context.Selection.Field.Arguments; + var arguments = context.Selection.Field.Arguments; foreach (var argument in arguments) { var value = context.ArgumentValue(argument.Name)!; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs index 0a9f024e569..a9293395bf9 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs @@ -26,7 +26,7 @@ public void GetFormattedFieldName_ReturnsFormattedFieldName( new NoOpStringBuilderPool())); // act - string formattedFieldName = namingConventions.FormatFieldName(fieldName); + var formattedFieldName = namingConventions.FormatFieldName(fieldName); // assert Assert.Equal(expected, formattedFieldName); diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_and_B_Are_Set.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_and_B_Are_Set.snap index 06072104222..758f024be17 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_and_B_Are_Set.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_and_B_Are_Set.snap @@ -16,7 +16,6 @@ "Extensions": { "code": "HC0055" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_is_Null_and_B_has_Value.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_is_Null_and_B_has_Value.snap index 06072104222..758f024be17 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_is_Null_and_B_has_Value.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/InputParserTests.OneOf_A_is_Null_and_B_has_Value.snap @@ -16,7 +16,6 @@ "Extensions": { "code": "HC0055" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanArgQuery.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanArgQuery.snap index 013f1dc090a..211fb8ff97c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanArgQuery.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanArgQuery.snap @@ -29,25 +29,6 @@ "locationType": "Boolean!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 161, - "End": 173, - "Line": 4, - "Column": 67 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 162, - "End": 173, - "Line": 4, - "Column": 68 - }, - "Value": "booleanArg" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanListCannotGoIntoBoolean.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanListCannotGoIntoBoolean.snap index 2ae49f6a61c..a07c23cf6ef 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanListCannotGoIntoBoolean.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanListCannotGoIntoBoolean.snap @@ -29,25 +29,6 @@ "locationType": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 168, - "End": 184, - "Line": 4, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 169, - "End": 184, - "Line": 4, - "Column": 54 - }, - "Value": "booleanListArg" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanToBooleanInDirective.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanToBooleanInDirective.snap index 41c0bb49465..974f02826c5 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanToBooleanInDirective.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.BooleanToBooleanInDirective.snap @@ -24,25 +24,6 @@ "locationType": "Boolean!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 87, - "End": 96, - "Line": 3, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 96, - "Line": 3, - "Column": 39 - }, - "Value": "boolVar" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntCannotGoIntoBoolean.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntCannotGoIntoBoolean.snap index 9da4bee23e8..7d790606d00 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntCannotGoIntoBoolean.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntCannotGoIntoBoolean.snap @@ -29,25 +29,6 @@ "locationType": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 146, - "End": 154, - "Line": 4, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 147, - "End": 154, - "Line": 4, - "Column": 54 - }, - "Value": "intArg" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinFragment.snap index cf3d38eb104..03a4655aa6f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinFragment.snap @@ -29,25 +29,6 @@ "locationType": "Int!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 111, - "End": 119, - "Line": 3, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 112, - "End": 119, - "Line": 3, - "Column": 49 - }, - "Value": "intArg" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinNestedFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinNestedFragment.snap index 01b25221de3..d37cf972885 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinNestedFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntNullableToIntWithinNestedFragment.snap @@ -29,25 +29,6 @@ "locationType": "Int!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 226, - "End": 234, - "Line": 7, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 227, - "End": 234, - "Line": 7, - "Column": 49 - }, - "Value": "intArg" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableInt.snap index 8084504949d..183ac54445a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableInt.snap @@ -29,25 +29,6 @@ "locationType": "Int!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 128, - "End": 136, - "Line": 4, - "Column": 52 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 129, - "End": 136, - "Line": 4, - "Column": 53 - }, - "Value": "intArg" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableIntFailsWhenVariableProvidesNullDefaultValue.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableIntFailsWhenVariableProvidesNullDefaultValue.snap index 2cf4e83f506..bfac08348c3 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableIntFailsWhenVariableProvidesNullDefaultValue.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.IntToNullableIntFailsWhenVariableProvidesNullDefaultValue.snap @@ -29,25 +29,6 @@ "locationType": "Int!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 135, - "End": 143, - "Line": 4, - "Column": 52 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 136, - "End": 143, - "Line": 4, - "Column": 53 - }, - "Value": "intVar" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.ListToNonNullList.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.ListToNonNullList.snap index 9c4d11fd531..df68134377d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.ListToNonNullList.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.ListToNonNullList.snap @@ -29,25 +29,6 @@ "locationType": "[Boolean]!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 171, - "End": 184, - "Line": 4, - "Column": 72 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 172, - "End": 184, - "Line": 4, - "Column": 73 - }, - "Value": "booleanList" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.NullableBooleanVariableAsListElement.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.NullableBooleanVariableAsListElement.snap index 08533dbe864..a786a53e51b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.NullableBooleanVariableAsListElement.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.NullableBooleanVariableAsListElement.snap @@ -29,25 +29,6 @@ "locationType": "Boolean!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 179, - "End": 196, - "Line": 4, - "Column": 69 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 180, - "End": 196, - "Line": 4, - "Column": 70 - }, - "Value": "nullableBoolean" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringOverBoolean.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringOverBoolean.snap index c702b3185cf..e3969f97a33 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringOverBoolean.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringOverBoolean.snap @@ -29,25 +29,6 @@ "locationType": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 135, - "End": 146, - "Line": 4, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 136, - "End": 146, - "Line": 4, - "Column": 54 - }, - "Value": "stringVar" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToElementIsNullableString.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToElementIsNullableString.snap index ba68a479ed5..b9f0386a1ee 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToElementIsNullableString.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToElementIsNullableString.snap @@ -29,25 +29,6 @@ "locationType": "[String]!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 177, - "End": 192, - "Line": 5, - "Column": 73 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 178, - "End": 192, - "Line": 5, - "Column": 74 - }, - "Value": "stringListVar" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToNullableBooleanInDirective.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToNullableBooleanInDirective.snap index 111d2e74b59..cc849728bcc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToNullableBooleanInDirective.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToNullableBooleanInDirective.snap @@ -24,25 +24,6 @@ "locationType": "Boolean!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 88, - "End": 99, - "Line": 3, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 89, - "End": 99, - "Line": 3, - "Column": 39 - }, - "Value": "stringVar" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToStringArray.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToStringArray.snap index 6df99ab2591..4cbd908c4c3 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToStringArray.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariableUsagesAreAllowedRuleTests.StringToStringArray.snap @@ -29,25 +29,6 @@ "locationType": "[String]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Usages-are-Allowed" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Variable", - "Location": { - "Start": 141, - "End": 152, - "Line": 4, - "Column": 59 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 142, - "End": 152, - "Line": 4, - "Column": 60 - }, - "Value": "stringVar" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.QueryWithExtraVar.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.QueryWithExtraVar.snap index 75517983c96..e58eb1f84a2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.QueryWithExtraVar.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.QueryWithExtraVar.snap @@ -12,192 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 199, - "End": 403, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 205, - "End": 223, - "Line": 8, - "Column": 23 - }, - "Value": "queryWithExtraVar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 223, - "End": 248, - "Line": 8, - "Column": 41 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 223, - "End": 237, - "Line": 8, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 224, - "End": 237, - "Line": 8, - "Column": 42 - }, - "Value": "atOtherHomes" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 238, - "End": 248, - "Line": 8, - "Column": 56 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 238, - "End": 248, - "Line": 8, - "Column": 56 - }, - "Value": "Boolean" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 247, - "End": 259, - "Line": 8, - "Column": 65 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 247, - "End": 254, - "Line": 8, - "Column": 65 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 248, - "End": 254, - "Line": 8, - "Column": 66 - }, - "Value": "extra" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 255, - "End": 259, - "Line": 8, - "Column": 73 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 255, - "End": 259, - "Line": 8, - "Column": 73 - }, - "Value": "Int" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 260, - "End": 403, - "Line": 8, - "Column": 78 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 286, - "End": 377, - "Line": 9, - "Column": 25 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 312, - "End": 359, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 315, - "End": 359, - "Line": 10, - "Column": 28 - }, - "Value": "isHousetrainedFragment" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 282, - "End": 377, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 282, - "End": 287, - "Line": 9, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableNotUsedWithinFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableNotUsedWithinFragment.snap index eb6bce6b1de..5cb366c46dc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableNotUsedWithinFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableNotUsedWithinFragment.snap @@ -12,143 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 235, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 53, - "Line": 2, - "Column": 23 - }, - "Value": "variableNotUsedWithinFragment" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 53, - "End": 76, - "Line": 2, - "Column": 53 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 53, - "End": 67, - "Line": 2, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 54, - "End": 67, - "Line": 2, - "Column": 54 - }, - "Value": "atOtherHomes" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 68, - "End": 76, - "Line": 2, - "Column": 68 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 68, - "End": 76, - "Line": 2, - "Column": 68 - }, - "Value": "Boolean" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 77, - "End": 235, - "Line": 2, - "Column": 77 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 103, - "End": 209, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 129, - "End": 191, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 132, - "End": 191, - "Line": 4, - "Column": 28 - }, - "Value": "isHousetrainedWithoutVariableFragment" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 99, - "End": 209, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 99, - "End": 104, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUnused.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUnused.snap index 06a040c305c..5cb366c46dc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUnused.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUnused.snap @@ -12,147 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 181, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 38, - "Line": 2, - "Column": 23 - }, - "Value": "variableUnused" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 38, - "End": 61, - "Line": 2, - "Column": 38 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 38, - "End": 52, - "Line": 2, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 52, - "Line": 2, - "Column": 39 - }, - "Value": "atOtherHomes" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 53, - "End": 61, - "Line": 2, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 53, - "End": 61, - "Line": 2, - "Column": 53 - }, - "Value": "Boolean" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 62, - "End": 181, - "Line": 2, - "Column": 62 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 88, - "End": 168, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 114, - "End": 150, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 114, - "End": 150, - "Line": 4, - "Column": 25 - }, - "Value": "isHouseTrained" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 84, - "End": 168, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 89, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared.snap index 324bcd21945..c531d2f97a1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared.snap @@ -12,136 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 192, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 58, - "Line": 2, - "Column": 23 - }, - "Value": "variableIsDefined" - }, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 57, - "End": 192, - "Line": 3, - "Column": 17 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 83, - "End": 192, - "Line": 4, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 124, - "End": 152, - "Line": 5, - "Column": 40 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 124, - "End": 137, - "Line": 5, - "Column": 40 - }, - "Value": "atOtherHomes" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 138, - "End": 152, - "Line": 5, - "Column": 54 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 139, - "End": 152, - "Line": 5, - "Column": 55 - }, - "Value": "atOtherHomes" - } - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 109, - "End": 174, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 109, - "End": 124, - "Line": 5, - "Column": 25 - }, - "Value": "isHouseTrained" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 79, - "End": 192, - "Line": 4, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 79, - "End": 84, - "Line": 4, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared2.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared2.snap index 79980a757b8..c531d2f97a1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared2.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VariableUsedAndNotDeclared2.snap @@ -12,93 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 210, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 65, - "Line": 2, - "Column": 23 - }, - "Value": "variableIsNotDefinedUsedInNestedFragment" - }, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 64, - "End": 210, - "Line": 2, - "Column": 64 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 90, - "End": 184, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 116, - "End": 166, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 119, - "End": 166, - "Line": 4, - "Column": 28 - }, - "Value": "outerHousetrainedFragment" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 86, - "End": 184, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 86, - "End": 91, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VarsMustBeDefinedInAllOperationsInWhichAFragmentIsUsedErr.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VarsMustBeDefinedInAllOperationsInWhichAFragmentIsUsedErr.snap index 79980a757b8..c531d2f97a1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VarsMustBeDefinedInAllOperationsInWhichAFragmentIsUsedErr.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/AllVariablesUsedRuleTests.VarsMustBeDefinedInAllOperationsInWhichAFragmentIsUsedErr.snap @@ -12,93 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 210, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 65, - "Line": 2, - "Column": 23 - }, - "Value": "variableIsNotDefinedUsedInNestedFragment" - }, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 64, - "End": 210, - "Line": 2, - "Column": 64 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 90, - "End": 184, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 116, - "End": 166, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 119, - "End": 166, - "Line": 4, - "Column": 28 - }, - "Value": "outerHousetrainedFragment" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 86, - "End": 184, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 86, - "End": 91, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DirectiveWithWrongArgsIsInvalid.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DirectiveWithWrongArgsIsInvalid.snap index 19d51eed262..c2ef6ed9af9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DirectiveWithWrongArgsIsInvalid.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DirectiveWithWrongArgsIsInvalid.snap @@ -23,35 +23,6 @@ "argument": "if", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 52, - "End": 61, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 52, - "End": 55, - "Line": 3, - "Column": 34 - }, - "Value": "if" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 55, - "End": 61, - "Line": 3, - "Column": 37 - }, - "Value": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateDirectiveArguments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateDirectiveArguments.snap index 325aa7b1f58..3b977a97236 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateDirectiveArguments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateDirectiveArguments.snap @@ -23,36 +23,6 @@ "argument": "arg1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 85, - "End": 99, - "Line": 3, - "Column": 60 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 90, - "Line": 3, - "Column": 60 - }, - "Value": "arg1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 91, - "End": 99, - "Line": 3, - "Column": 66 - }, - "Value": "value", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateFieldArguments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateFieldArguments.snap index dc118848e83..4f6fa80b5de 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateFieldArguments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.DuplicateFieldArguments.snap @@ -15,36 +15,6 @@ "argument": "arg1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 74, - "End": 88, - "Line": 3, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 74, - "End": 79, - "Line": 3, - "Column": 49 - }, - "Value": "arg1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 80, - "End": 88, - "Line": 3, - "Column": 55 - }, - "Value": "value", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidDirectiveArgName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidDirectiveArgName.snap index b8ef9fb5877..b332d49003e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidDirectiveArgName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidDirectiveArgName.snap @@ -28,36 +28,7 @@ "argument": "unless", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 248, - "End": 262, - "Line": 9, - "Column": 65 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 248, - "End": 255, - "Line": 9, - "Column": 65 - }, - "Value": "unless" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 256, - "End": 262, - "Line": 9, - "Column": 73 - }, - "Value": false - } - } + "Exception": null }, { "Message": "The argument `if` is required.", @@ -88,56 +59,6 @@ "argument": "if", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 239, - "End": 280, - "Line": 9, - "Column": 56 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 240, - "End": 248, - "Line": 9, - "Column": 57 - }, - "Value": "include" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 248, - "End": 262, - "Line": 9, - "Column": 65 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 248, - "End": 255, - "Line": 9, - "Column": 65 - }, - "Value": "unless" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 256, - "End": 262, - "Line": 9, - "Column": 73 - }, - "Value": false - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidFieldArgName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidFieldArgName.snap index f99882879d7..1158f753e92 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidFieldArgName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.InvalidFieldArgName.snap @@ -24,36 +24,7 @@ "argument": "command", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 220, - "End": 244, - "Line": 9, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 220, - "End": 228, - "Line": 9, - "Column": 37 - }, - "Value": "command" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 229, - "End": 244, - "Line": 9, - "Column": 46 - }, - "Value": "CLEAN_UP_HOUSE" - } - } + "Exception": null }, { "Message": "The argument `dogCommand` is required.", @@ -80,60 +51,6 @@ "argument": "dogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 220, - "End": 244, - "Line": 9, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 220, - "End": 228, - "Line": 9, - "Column": 37 - }, - "Value": "command" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 229, - "End": 244, - "Line": 9, - "Column": 46 - }, - "Value": "CLEAN_UP_HOUSE" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 204, - "End": 262, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 204, - "End": 220, - "Line": 9, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateDirectiveArguments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateDirectiveArguments.snap index a9a60c1d617..c8fabb43071 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateDirectiveArguments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateDirectiveArguments.snap @@ -23,37 +23,7 @@ "argument": "arg1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 85, - "End": 104, - "Line": 3, - "Column": 60 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 90, - "Line": 3, - "Column": 60 - }, - "Value": "arg1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 91, - "End": 104, - "Line": 3, - "Column": 66 - }, - "Value": "value", - "Block": false - } - } + "Exception": null }, { "Message": "More than one argument with the same name in an argument set is ambiguous and invalid.", @@ -79,36 +49,6 @@ "argument": "arg1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 100, - "End": 114, - "Line": 3, - "Column": 75 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 100, - "End": 105, - "Line": 3, - "Column": 75 - }, - "Value": "arg1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 106, - "End": 114, - "Line": 3, - "Column": 81 - }, - "Value": "value", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateFieldArguments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateFieldArguments.snap index 7c23150177e..3d15c8e07b2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateFieldArguments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.ManyDuplicateFieldArguments.snap @@ -15,37 +15,7 @@ "argument": "arg1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 74, - "End": 93, - "Line": 3, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 74, - "End": 79, - "Line": 3, - "Column": 49 - }, - "Value": "arg1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 80, - "End": 93, - "Line": 3, - "Column": 55 - }, - "Value": "value", - "Block": false - } - } + "Exception": null }, { "Message": "More than one argument with the same name in an argument set is ambiguous and invalid.", @@ -63,36 +33,6 @@ "argument": "arg1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 89, - "End": 103, - "Line": 3, - "Column": 64 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 89, - "End": 94, - "Line": 3, - "Column": 64 - }, - "Value": "arg1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 95, - "End": 103, - "Line": 3, - "Column": 70 - }, - "Value": "value", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledDirectiveArgsAreReported.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledDirectiveArgsAreReported.snap index 97b43b29725..f6368989b05 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledDirectiveArgsAreReported.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledDirectiveArgsAreReported.snap @@ -23,36 +23,7 @@ "argument": "iff", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 49, - "End": 59, - "Line": 3, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 49, - "End": 53, - "Line": 3, - "Column": 31 - }, - "Value": "iff" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 54, - "End": 59, - "Line": 3, - "Column": 36 - }, - "Value": true - } - } + "Exception": null }, { "Message": "The argument `if` is required.", @@ -78,56 +49,6 @@ "argument": "if", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 43, - "End": 77, - "Line": 3, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 44, - "End": 49, - "Line": 3, - "Column": 26 - }, - "Value": "skip" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 49, - "End": 59, - "Line": 3, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 49, - "End": 53, - "Line": 3, - "Column": 31 - }, - "Value": "iff" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 54, - "End": 59, - "Line": 3, - "Column": 36 - }, - "Value": true - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledFieldArgsAreReported.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledFieldArgsAreReported.snap index f0b3f486ab5..cd4c62a16ed 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledFieldArgsAreReported.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.MisspelledFieldArgsAreReported.snap @@ -24,36 +24,7 @@ "argument": "DogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 219, - "End": 236, - "Line": 8, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 219, - "End": 230, - "Line": 8, - "Column": 37 - }, - "Value": "DogCommand" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 231, - "End": 236, - "Line": 8, - "Column": 49 - }, - "Value": true - } - } + "Exception": null }, { "Message": "The argument `dogCommand` is required.", @@ -80,60 +51,6 @@ "argument": "dogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 219, - "End": 236, - "Line": 8, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 219, - "End": 230, - "Line": 8, - "Column": 37 - }, - "Value": "DogCommand" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 231, - "End": 236, - "Line": 8, - "Column": 49 - }, - "Value": true - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 203, - "End": 254, - "Line": 8, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 203, - "End": 219, - "Line": 8, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsAmongstKnowArgs.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsAmongstKnowArgs.snap index d2e22b0ea4b..803e2a33660 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsAmongstKnowArgs.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsAmongstKnowArgs.snap @@ -24,36 +24,7 @@ "argument": "whoKnows", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 237, - "End": 260, - "Line": 8, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 237, - "End": 246, - "Line": 8, - "Column": 37 - }, - "Value": "whoKnows" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 247, - "End": 260, - "Line": 8, - "Column": 47 - }, - "Value": "1" - } - } + "Exception": null }, { "Message": "The argument `unknown` does not exist.", @@ -80,35 +51,6 @@ "argument": "unknown", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 267, - "End": 281, - "Line": 8, - "Column": 67 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 267, - "End": 275, - "Line": 8, - "Column": 67 - }, - "Value": "unknown" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 276, - "End": 281, - "Line": 8, - "Column": 76 - }, - "Value": true - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsDeeply.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsDeeply.snap index 023b4b81108..cda576d8af0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsDeeply.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentNamesRuleTests.UnknownArgsDeeply.snap @@ -24,36 +24,7 @@ "argument": "unknown", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 85, - "End": 99, - "Line": 4, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 93, - "Line": 4, - "Column": 41 - }, - "Value": "unknown" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 94, - "End": 99, - "Line": 4, - "Column": 50 - }, - "Value": true - } - } + "Exception": null }, { "Message": "The argument `dogCommand` is required.", @@ -80,60 +51,6 @@ "argument": "dogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 85, - "End": 99, - "Line": 4, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 93, - "Line": 4, - "Column": 41 - }, - "Value": "unknown" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 94, - "End": 99, - "Line": 4, - "Column": 50 - }, - "Value": true - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 69, - "End": 121, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 85, - "Line": 4, - "Column": 25 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentUniquenessRuleTests.DuplicateArgument.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentUniquenessRuleTests.DuplicateArgument.snap index 76d91f2333f..8305c2e3b29 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentUniquenessRuleTests.DuplicateArgument.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ArgumentUniquenessRuleTests.DuplicateArgument.snap @@ -24,35 +24,6 @@ "argument": "nonNullBooleanArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 264, - "End": 288, - "Line": 9, - "Column": 69 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 264, - "End": 282, - "Line": 9, - "Column": 69 - }, - "Value": "nonNullBooleanArg" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 283, - "End": 288, - "Line": 9, - "Column": 88 - }, - "Value": true - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Defer.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Defer.snap index 863a86e002d..d9e492af9e7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Defer.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Defer.snap @@ -13,113 +13,6 @@ "specifiedBy": "https://spec.graphql.org/October2021/#sec-Defer-And-Stream-Directive-Labels-Are-Unique", "label": "a" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 117, - "End": 207, - "Line": 5, - "Column": 17 - }, - "TypeCondition": null, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 121, - "End": 141, - "Line": 5, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 122, - "End": 128, - "Line": 5, - "Column": 22 - }, - "Value": "defer" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 128, - "End": 139, - "Line": 5, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 128, - "End": 134, - "Line": 5, - "Column": 28 - }, - "Value": "label" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 135, - "End": 139, - "Line": 5, - "Column": 35 - }, - "Value": "a", - "Block": false - } - } - ] - } - ], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 140, - "End": 207, - "Line": 5, - "Column": 40 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 162, - "End": 164, - "Line": 6, - "Column": 21 - }, - "Value": "b" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 162, - "End": 193, - "Line": 6, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 165, - "End": 193, - "Line": 6, - "Column": 24 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Either_Stream_Or_Defer.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Either_Stream_Or_Defer.snap index 7155e429078..47157f87b0e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Either_Stream_Or_Defer.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Either_Stream_Or_Defer.snap @@ -22,116 +22,6 @@ "specifiedBy": "https://spec.graphql.org/October2021/#sec-Defer-And-Stream-Directive-Labels-Are-Unique", "label": "a" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 178, - "End": 248, - "Line": 6, - "Column": 48 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 204, - "End": 230, - "Line": 7, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 204, - "End": 230, - "Line": 7, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 151, - "End": 248, - "Line": 6, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 151, - "End": 159, - "Line": 6, - "Column": 21 - }, - "Value": "_types" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 158, - "End": 179, - "Line": 6, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 159, - "End": 166, - "Line": 6, - "Column": 29 - }, - "Value": "stream" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 166, - "End": 177, - "Line": 6, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 166, - "End": 172, - "Line": 6, - "Column": 36 - }, - "Value": "label" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 173, - "End": 177, - "Line": 6, - "Column": 43 - }, - "Value": "a", - "Block": false - } - } - ] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Stream.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Stream.snap index 709da9fa4c1..98cc59dff5b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Stream.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Duplicate_On_Stream.snap @@ -22,116 +22,6 @@ "specifiedBy": "https://spec.graphql.org/October2021/#sec-Defer-And-Stream-Directive-Labels-Are-Unique", "label": "a" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 233, - "End": 303, - "Line": 8, - "Column": 48 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 259, - "End": 285, - "Line": 9, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 259, - "End": 285, - "Line": 9, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 206, - "End": 303, - "Line": 8, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 206, - "End": 214, - "Line": 8, - "Column": 21 - }, - "Value": "_types" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 213, - "End": 234, - "Line": 8, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 214, - "End": 221, - "Line": 8, - "Column": 29 - }, - "Value": "stream" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 221, - "End": 232, - "Line": 8, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 221, - "End": 227, - "Line": 8, - "Column": 36 - }, - "Value": "label" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 228, - "End": 232, - "Line": 8, - "Column": 43 - }, - "Value": "a", - "Block": false - } - } - ] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Is_Variable_On_Defer.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Is_Variable_On_Defer.snap index 246edd8c928..c6be8c7b6b7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Is_Variable_On_Defer.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectiveLabelsAreUniqueTests.Label_Is_Variable_On_Defer.snap @@ -13,121 +13,6 @@ "specifiedBy": "https://spec.graphql.org/October2021/#sec-Defer-And-Stream-Directive-Labels-Are-Unique", "variable": "$a" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 36, - "End": 125, - "Line": 2, - "Column": 17 - }, - "TypeCondition": null, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 40, - "End": 59, - "Line": 2, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 41, - "End": 47, - "Line": 2, - "Column": 22 - }, - "Value": "defer" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 47, - "End": 57, - "Line": 2, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 47, - "End": 53, - "Line": 2, - "Column": 28 - }, - "Value": "label" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 54, - "End": 57, - "Line": 2, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 55, - "End": 57, - "Line": 2, - "Column": 36 - }, - "Value": "a" - } - } - } - ] - } - ], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 58, - "End": 125, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 80, - "End": 82, - "Line": 3, - "Column": 21 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 80, - "End": 111, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 83, - "End": 111, - "Line": 3, - "Column": 24 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root.snap index ede2c1b6f47..2e9bcbef5fc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root.snap @@ -12,73 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Defer-And-Stream-Directives-Are-Used-On-Valid-Root-Field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 31, - "End": 121, - "Line": 2, - "Column": 17 - }, - "TypeCondition": null, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 35, - "End": 43, - "Line": 2, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 36, - "End": 43, - "Line": 2, - "Column": 22 - }, - "Value": "defer" - }, - "Arguments": [] - } - ], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 42, - "End": 121, - "Line": 2, - "Column": 28 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 64, - "End": 107, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 64, - "End": 107, - "Line": 3, - "Column": 21 - }, - "Value": "disallowedSecondRootField" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root_In_Nested_Fragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root_In_Nested_Fragment.snap index 2a2fd974015..6775e676dc5 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root_In_Nested_Fragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Defer_On_Subscriptions_Root_In_Nested_Fragment.snap @@ -12,73 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Defer-And-Stream-Directives-Are-Used-On-Valid-Root-Field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 187, - "End": 277, - "Line": 10, - "Column": 17 - }, - "TypeCondition": null, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 191, - "End": 199, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 192, - "End": 199, - "Line": 10, - "Column": 22 - }, - "Value": "defer" - }, - "Arguments": [] - } - ], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 198, - "End": 277, - "Line": 10, - "Column": 28 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 220, - "End": 263, - "Line": 11, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 220, - "End": 263, - "Line": 11, - "Column": 21 - }, - "Value": "disallowedSecondRootField" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Stream_On_Subscriptions_Root.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Stream_On_Subscriptions_Root.snap index 5af9f948392..2e9bcbef5fc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Stream_On_Subscriptions_Root.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DeferAndStreamDirectivesAreUsedOnValidRootFieldTests.Stream_On_Subscriptions_Root.snap @@ -12,51 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Defer-And-Stream-Directives-Are-Used-On-Valid-Root-Field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 31, - "End": 62, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 42, - "Line": 2, - "Column": 17 - }, - "Value": "listEvent" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 41, - "End": 62, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 42, - "End": 62, - "Line": 2, - "Column": 28 - }, - "Value": "stream" - }, - "Arguments": [] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DifferentDuplicateDirectivesInOneLocation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DifferentDuplicateDirectivesInOneLocation.snap index 3771df57ee5..c9b7b17caa4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DifferentDuplicateDirectivesInOneLocation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DifferentDuplicateDirectivesInOneLocation.snap @@ -12,27 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 158, - "End": 171, - "Line": 6, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 159, - "End": 171, - "Line": 6, - "Column": 52 - }, - "Value": "directiveA" - }, - "Arguments": [] - } + "Exception": null }, { "Message": "Only one of each directive is allowed per location.", @@ -47,26 +27,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 170, - "End": 199, - "Line": 6, - "Column": 63 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 199, - "Line": 6, - "Column": 64 - }, - "Value": "directiveB" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInManyLocations.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInManyLocations.snap index bf4e1d6c5a1..80d555b09a0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInManyLocations.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInManyLocations.snap @@ -12,27 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 118, - "End": 131, - "Line": 5, - "Column": 52 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 119, - "End": 131, - "Line": 5, - "Column": 53 - }, - "Value": "directiveA" - }, - "Arguments": [] - } + "Exception": null }, { "Message": "Only one of each directive is allowed per location.", @@ -47,26 +27,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 170, - "End": 199, - "Line": 6, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 199, - "Line": 6, - "Column": 40 - }, - "Value": "directiveA" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInOneLocation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInOneLocation.snap index b1b90000f74..beb123f6354 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInOneLocation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateDirectivesInOneLocation.snap @@ -12,26 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 146, - "End": 175, - "Line": 6, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 147, - "End": 175, - "Line": 6, - "Column": 40 - }, - "Value": "directiveA" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateSkipDirectives.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateSkipDirectives.snap index 20bda4df6f6..b5fa62f59a7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateSkipDirectives.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.DuplicateSkipDirectives.snap @@ -12,65 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 113, - "End": 146, - "Line": 3, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 114, - "End": 119, - "Line": 3, - "Column": 44 - }, - "Value": "skip" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 119, - "End": 128, - "Line": 3, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 119, - "End": 122, - "Line": 3, - "Column": 49 - }, - "Value": "if" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 123, - "End": 128, - "Line": 3, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 124, - "End": 128, - "Line": 3, - "Column": 54 - }, - "Value": "bar" - } - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.ManyDuplicateDirectivesInOneLocation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.ManyDuplicateDirectivesInOneLocation.snap index 28909180a6a..f04c06dc262 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.ManyDuplicateDirectivesInOneLocation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.ManyDuplicateDirectivesInOneLocation.snap @@ -12,27 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 146, - "End": 159, - "Line": 6, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 147, - "End": 159, - "Line": 6, - "Column": 40 - }, - "Value": "directiveA" - }, - "Arguments": [] - } + "Exception": null }, { "Message": "Only one of each directive is allowed per location.", @@ -47,26 +27,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Unique-Per-Location" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 158, - "End": 187, - "Line": 6, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 159, - "End": 187, - "Line": 6, - "Column": 52 - }, - "Value": "directiveA" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.SkipDirectiveIsInTheWrongPlace.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.SkipDirectiveIsInTheWrongPlace.snap index f8db69c1a66..9e9033fc4a3 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.SkipDirectiveIsInTheWrongPlace.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.SkipDirectiveIsInTheWrongPlace.snap @@ -12,65 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 23, - "End": 40, - "Line": 2, - "Column": 23 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 29, - "Line": 2, - "Column": 24 - }, - "Value": "skip" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 29, - "End": 38, - "Line": 2, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 32, - "Line": 2, - "Column": 29 - }, - "Value": "if" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 33, - "End": 38, - "Line": 2, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 34, - "End": 38, - "Line": 2, - "Column": 34 - }, - "Value": "foo" - } - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.UnsupportedDirective.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.UnsupportedDirective.snap index 77b39069c19..9bb49e51e2c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.UnsupportedDirective.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.UnsupportedDirective.snap @@ -26,56 +26,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 74, - "End": 111, - "Line": 4, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 79, - "Line": 4, - "Column": 31 - }, - "Value": "foo" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 79, - "End": 89, - "Line": 4, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 79, - "End": 83, - "Line": 4, - "Column": 35 - }, - "Value": "bar" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 84, - "End": 89, - "Line": 4, - "Column": 40 - }, - "Value": true - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithManyUnknownDirectives.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithManyUnknownDirectives.snap index e3c4c0e30bf..a203b7c8abe 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithManyUnknownDirectives.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithManyUnknownDirectives.snap @@ -21,58 +21,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 43, - "End": 73, - "Line": 3, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 44, - "End": 52, - "Line": 3, - "Column": 26 - }, - "Value": "unknown" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 52, - "End": 71, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 52, - "End": 62, - "Line": 3, - "Column": 34 - }, - "Value": "directive" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 63, - "End": 71, - "Line": 3, - "Column": 45 - }, - "Value": "value", - "Block": false - } - } - ] - } + "Exception": null }, { "Message": "The specified directive `unknown` is not supported by the current schema.", @@ -96,58 +45,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 151, - "End": 181, - "Line": 6, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 152, - "End": 160, - "Line": 6, - "Column": 28 - }, - "Value": "unknown" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 160, - "End": 179, - "Line": 6, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 160, - "End": 170, - "Line": 6, - "Column": 36 - }, - "Value": "directive" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 171, - "End": 179, - "Line": 6, - "Column": 47 - }, - "Value": "value", - "Block": false - } - } - ] - } + "Exception": null }, { "Message": "The specified directive `unknown` is not supported by the current schema.", @@ -176,57 +74,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 240, - "End": 270, - "Line": 8, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 241, - "End": 249, - "Line": 8, - "Column": 31 - }, - "Value": "unknown" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 249, - "End": 268, - "Line": 8, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 249, - "End": 259, - "Line": 8, - "Column": 39 - }, - "Value": "directive" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 260, - "End": 268, - "Line": 8, - "Column": 50 - }, - "Value": "value", - "Block": false - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectiveOnQuery.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectiveOnQuery.snap index b386f73af4e..0cc4afe9ede 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectiveOnQuery.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectiveOnQuery.snap @@ -12,56 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 42, - "End": 62, - "Line": 2, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 51, - "Line": 2, - "Column": 43 - }, - "Value": "include" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 51, - "End": 60, - "Line": 2, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 51, - "End": 54, - "Line": 2, - "Column": 51 - }, - "Value": "if" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 55, - "End": 60, - "Line": 2, - "Column": 55 - }, - "Value": true - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnField.snap index 8bd9b7313e5..2c5bb624a05 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnField.snap @@ -21,26 +21,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 71, - "End": 100, - "Line": 3, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 72, - "End": 100, - "Line": 3, - "Column": 27 - }, - "Value": "onQuery" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFieldRepeatedly.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFieldRepeatedly.snap index 4a4204c13c4..2c5bb624a05 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFieldRepeatedly.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFieldRepeatedly.snap @@ -21,26 +21,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 71, - "End": 81, - "Line": 3, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 72, - "End": 81, - "Line": 3, - "Column": 27 - }, - "Value": "onQuery" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFragemnt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFragemnt.snap index e5020ca9476..3dfa9a8a8f0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFragemnt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnFragemnt.snap @@ -12,26 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 75, - "End": 101, - "Line": 3, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 76, - "End": 101, - "Line": 3, - "Column": 30 - }, - "Value": "onQuery" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnMutation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnMutation.snap index cd36a0e4de3..5650e172c1c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnMutation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnMutation.snap @@ -12,26 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 31, - "End": 41, - "Line": 2, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 41, - "Line": 2, - "Column": 31 - }, - "Value": "onQuery" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnSubscription.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnSubscription.snap index 5ec6817ebc7..6ccc7ecfde9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnSubscription.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnSubscription.snap @@ -12,26 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 35, - "End": 45, - "Line": 2, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 36, - "End": 45, - "Line": 2, - "Column": 35 - }, - "Value": "onQuery" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnVariableDefinition.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnVariableDefinition.snap index 6984769fdbd..479feb27bbc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnVariableDefinition.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedDirectivesOnVariableDefinition.snap @@ -12,56 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 41, - "End": 60, - "Line": 2, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 42, - "End": 50, - "Line": 2, - "Column": 42 - }, - "Value": "onQuery" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 50, - "End": 59, - "Line": 2, - "Column": 50 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 50, - "End": 53, - "Line": 2, - "Column": 50 - }, - "Value": "if" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 54, - "End": 59, - "Line": 2, - "Column": 54 - }, - "Value": true - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedVariableDefinitionDirective.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedVariableDefinitionDirective.snap index 4c821ab6865..332e7fe9121 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedVariableDefinitionDirective.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithMisplacedVariableDefinitionDirective.snap @@ -12,26 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 41, - "End": 50, - "Line": 2, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 42, - "End": 50, - "Line": 2, - "Column": 42 - }, - "Value": "onField" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithUnknownDirectives.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithUnknownDirectives.snap index b609164ec1f..66431cd02fb 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithUnknownDirectives.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DirectivesAreDefinedRuleTests.WithUnknownDirectives.snap @@ -21,57 +21,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 44, - "End": 74, - "Line": 3, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 53, - "Line": 3, - "Column": 26 - }, - "Value": "unknown" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 53, - "End": 72, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 53, - "End": 63, - "Line": 3, - "Column": 34 - }, - "Value": "directive" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 64, - "End": 72, - "Line": 3, - "Column": 45 - }, - "Value": "value", - "Block": false - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Anonymous_empty_query_repeated_25000.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Anonymous_empty_query_repeated_25000.snap index 793ada3ccfa..37ed920fcaf 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Anonymous_empty_query_repeated_25000.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Anonymous_empty_query_repeated_25000.snap @@ -13,30 +13,7 @@ "operations": 25000, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 49998, - "End": 50001, - "Line": 1, - "Column": 49999 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 49998, - "End": 50001, - "Line": 1, - "Column": 49999 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "Operation `Unnamed` has a empty selection set. Root types without subfields are disallowed.", @@ -53,30 +30,7 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 0, - "End": 3, - "Line": 1, - "Column": 1 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 0, - "End": 3, - "Line": 1, - "Column": 1 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "Operation `Unnamed` has a empty selection set. Root types without subfields are disallowed.", @@ -93,30 +47,7 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 2, - "End": 5, - "Line": 1, - "Column": 3 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 2, - "End": 5, - "Line": 1, - "Column": 3 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "Operation `Unnamed` has a empty selection set. Root types without subfields are disallowed.", @@ -133,30 +64,7 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 4, - "End": 7, - "Line": 1, - "Column": 5 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 4, - "End": 7, - "Line": 1, - "Column": 5 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "Operation `Unnamed` has a empty selection set. Root types without subfields are disallowed.", @@ -173,29 +81,6 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 6, - "End": 9, - "Line": 1, - "Column": 7 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 6, - "End": 9, - "Line": 1, - "Column": 7 - }, - "Selections": [] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ConflictingBecauseAlias.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ConflictingBecauseAlias.snap index 36f52c42d0e..2aedc9e2658 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ConflictingBecauseAlias.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ConflictingBecauseAlias.snap @@ -13,114 +13,6 @@ "fragment": "conflictingBecauseAlias", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 53, - "End": 58, - "Line": 2, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 53, - "End": 58, - "Line": 2, - "Column": 53 - }, - "Value": "Dog" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 57, - "End": 149, - "Line": 2, - "Column": 57 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 79, - "End": 84, - "Line": 3, - "Column": 21 - }, - "Value": "name" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 79, - "End": 118, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 118, - "Line": 3, - "Column": 27 - }, - "Value": "nickname" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 114, - "End": 136, - "Line": 4, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 114, - "End": 136, - "Line": 4, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 17, - "End": 149, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 26, - "End": 52, - "Line": 2, - "Column": 26 - }, - "Value": "conflictingBecauseAlias" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DisallowedSecondRootField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DisallowedSecondRootField.snap index 1fd99070fff..be327ad47e6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DisallowedSecondRootField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DisallowedSecondRootField.snap @@ -12,146 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Single-root-field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 238, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "sub" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 238, - "Line": 2, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 67, - "End": 207, - "Line": 3, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Value": "body" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Value": "sender" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 56, - "End": 207, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 56, - "End": 68, - "Line": 3, - "Column": 21 - }, - "Value": "newMessage" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 171, - "End": 225, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 225, - "Line": 7, - "Column": 21 - }, - "Value": "disallowedSecondRootFieldNonExisting" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The field `disallowedSecondRootFieldNonExisting` does not exist on the type `Subscription`.", @@ -169,30 +30,6 @@ "responseName": "disallowedSecondRootFieldNonExisting", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 171, - "End": 225, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 225, - "Line": 7, - "Column": 21 - }, - "Value": "disallowedSecondRootFieldNonExisting" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateArgument.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateArgument.snap index 58e3672edfc..6a584198381 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateArgument.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateArgument.snap @@ -24,35 +24,6 @@ "argument": "nonNullBooleanArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Argument-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 282, - "End": 306, - "Line": 9, - "Column": 50 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 282, - "End": 300, - "Line": 9, - "Column": 50 - }, - "Value": "nonNullBooleanArg" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 301, - "End": 306, - "Line": 9, - "Column": 69 - }, - "Value": true - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateFragments.snap index 3db1016c68d..2bcd6936678 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.DuplicateFragments.snap @@ -13,115 +13,6 @@ "fragment": "fragmentOne", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 255, - "End": 260, - "Line": 12, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 255, - "End": 260, - "Line": 12, - "Column": 41 - }, - "Value": "Dog" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 259, - "End": 370, - "Line": 12, - "Column": 45 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 287, - "End": 357, - "Line": 13, - "Column": 27 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 313, - "End": 339, - "Line": 14, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 313, - "End": 339, - "Line": 14, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 281, - "End": 357, - "Line": 13, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 281, - "End": 288, - "Line": 13, - "Column": 21 - }, - "Value": "owner" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 231, - "End": 370, - "Line": 12, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 240, - "End": 254, - "Line": 12, - "Column": 26 - }, - "Value": "fragmentOne" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail.snap index 795ff1ab8d9..f030fd4752a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail.snap @@ -13,26 +13,6 @@ "fragment": "f", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 20, - "End": 25, - "Line": 1, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 25, - "Line": 1, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail_2.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail_2.snap index 5ebbb71fa74..c01a5dab72d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail_2.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Ensure_Recursive_Fragments_Fail_2.snap @@ -15,115 +15,7 @@ "responseName": "f", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 86, - "End": 243, - "Line": 4, - "Column": 23 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 112, - "End": 142, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 115, - "End": 142, - "Line": 5, - "Column": 28 - }, - "Value": "f" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 143, - "End": 225, - "Line": 6, - "Column": 27 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 173, - "End": 203, - "Line": 7, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 176, - "End": 203, - "Line": 7, - "Column": 32 - }, - "Value": "f" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 141, - "End": 225, - "Line": 6, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 141, - "End": 144, - "Line": 6, - "Column": 25 - }, - "Value": "f" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 84, - "End": 243, - "Line": 4, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 87, - "Line": 4, - "Column": 21 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -139,26 +31,6 @@ "fragment": "f", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 59, - "End": 85, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 62, - "End": 85, - "Line": 3, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FieldIsNotDefinedOnTypeInFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FieldIsNotDefinedOnTypeInFragment.snap index b986ecf292e..8a7e48deeef 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FieldIsNotDefinedOnTypeInFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FieldIsNotDefinedOnTypeInFragment.snap @@ -24,31 +24,7 @@ "responseName": "meowVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 262, - "End": 290, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 262, - "End": 290, - "Line": 10, - "Column": 21 - }, - "Value": "meowVolume" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `kawVolume` does not exist on the type `Dog`.", @@ -75,39 +51,6 @@ "responseName": "barkVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 380, - "End": 391, - "Line": 14, - "Column": 21 - }, - "Value": "barkVolume" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 380, - "End": 419, - "Line": 14, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 392, - "End": 419, - "Line": 14, - "Column": 33 - }, - "Value": "kawVolume" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentCycle1.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentCycle1.snap index b9e01313427..4a66a59fe8a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentCycle1.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentCycle1.snap @@ -22,26 +22,6 @@ "fragment": "nameFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 363, - "End": 396, - "Line": 15, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 366, - "End": 396, - "Line": 15, - "Column": 24 - }, - "Value": "nameFragment" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentDoesNotMatchType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentDoesNotMatchType.snap index 759f36f491a..c7156fda2f1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentDoesNotMatchType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.FragmentDoesNotMatchType.snap @@ -24,81 +24,6 @@ "fragment": "fragmentDoesNotMatchType", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 191, - "End": 198, - "Line": 8, - "Column": 54 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 191, - "End": 198, - "Line": 8, - "Column": 54 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 197, - "End": 254, - "Line": 8, - "Column": 60 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 219, - "End": 241, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 219, - "End": 241, - "Line": 9, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 154, - "End": 254, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 163, - "End": 190, - "Line": 8, - "Column": 26 - }, - "Value": "fragmentDoesNotMatchType" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InlineFragOnScalar.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InlineFragOnScalar.snap index aa51a28f20c..d53a30d5a8d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InlineFragOnScalar.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InlineFragOnScalar.snap @@ -22,70 +22,6 @@ "typeCondition": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-On-Composite-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 205, - "End": 299, - "Line": 9, - "Column": 21 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 212, - "End": 221, - "Line": 9, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 212, - "End": 221, - "Line": 9, - "Column": 28 - }, - "Value": "Boolean" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 220, - "End": 299, - "Line": 9, - "Column": 36 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 246, - "End": 281, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 246, - "End": 281, - "Line": 10, - "Column": 25 - }, - "Value": "somethingElse" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidFieldArgName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidFieldArgName.snap index b0f6a0080a9..03d7d062ba0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidFieldArgName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidFieldArgName.snap @@ -24,36 +24,7 @@ "argument": "command", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 214, - "End": 238, - "Line": 9, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 214, - "End": 222, - "Line": 9, - "Column": 37 - }, - "Value": "command" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 223, - "End": 238, - "Line": 9, - "Column": 46 - }, - "Value": "CLEAN_UP_HOUSE" - } - } + "Exception": null }, { "Message": "The argument `dogCommand` is required.", @@ -80,60 +51,6 @@ "argument": "dogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 214, - "End": 238, - "Line": 9, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 214, - "End": 222, - "Line": 9, - "Column": 37 - }, - "Value": "command" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 223, - "End": 238, - "Line": 9, - "Column": 46 - }, - "Value": "CLEAN_UP_HOUSE" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 198, - "End": 256, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 198, - "End": 214, - "Line": 9, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidInputObjectFieldsExist.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidInputObjectFieldsExist.snap index 773b29d7179..2f2df1c0c6f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidInputObjectFieldsExist.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.InvalidInputObjectFieldsExist.snap @@ -22,36 +22,6 @@ "field": "favoriteCookieFlavor", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 58, - "End": 89, - "Line": 3, - "Column": 40 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 58, - "End": 79, - "Line": 3, - "Column": 40 - }, - "Value": "favoriteCookieFlavor" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 80, - "End": 89, - "Line": 3, - "Column": 62 - }, - "Value": "Bacon", - "Block": false - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MaxDepthRuleIsIncluded.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MaxDepthRuleIsIncluded.snap index 502e304935a..172456aecf7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MaxDepthRuleIsIncluded.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MaxDepthRuleIsIncluded.snap @@ -13,128 +13,6 @@ "allowedExecutionDepth": 1, "detectedExecutionDepth": 2 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 224, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 224, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 74, - "End": 211, - "Line": 4, - "Column": 21 - }, - "Selections": [ - { - "Kind": "InlineFragment", - "Location": { - "Start": 100, - "End": 193, - "Line": 5, - "Column": 25 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 107, - "End": 112, - "Line": 5, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 107, - "End": 112, - "Line": 5, - "Column": 32 - }, - "Value": "Cat" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 111, - "End": 193, - "Line": 5, - "Column": 36 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 141, - "End": 171, - "Line": 6, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 141, - "End": 171, - "Line": 6, - "Column": 29 - }, - "Value": "name" - }, - "Directives": [] - } - ] - } - } - ] - }, - "Location": { - "Start": 45, - "End": 211, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 75, - "Line": 3, - "Column": 21 - }, - "Value": "catOrDog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MissingRequiredArgNonNullBooleanArg.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MissingRequiredArgNonNullBooleanArg.snap index f40cfad962f..d48016eb6a6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MissingRequiredArgNonNullBooleanArg.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.MissingRequiredArgNonNullBooleanArg.snap @@ -24,35 +24,6 @@ "argument": "nonNullBooleanArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 241, - "End": 265, - "Line": 9, - "Column": 44 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 241, - "End": 259, - "Line": 9, - "Column": 44 - }, - "Value": "nonNullBooleanArg" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 260, - "End": 265, - "Line": 9, - "Column": 63 - }, - "Value": null - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NameFieldIsAmbiguous.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NameFieldIsAmbiguous.snap index a2c09d8413e..b5bf206e688 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NameFieldIsAmbiguous.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NameFieldIsAmbiguous.snap @@ -22,36 +22,6 @@ "field": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 69, - "End": 80, - "Line": 3, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 74, - "Line": 3, - "Column": 51 - }, - "Value": "name" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 75, - "End": 80, - "Line": 3, - "Column": 57 - }, - "Value": "B", - "Block": false - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NotExistingTypeOnInlineFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NotExistingTypeOnInlineFragment.snap index c3469ab0445..751698ea32e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NotExistingTypeOnInlineFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.NotExistingTypeOnInlineFragment.snap @@ -22,70 +22,6 @@ "typeCondition": "NotInSchema", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-Spread-Type-Existence" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 211, - "End": 300, - "Line": 9, - "Column": 21 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 218, - "End": 231, - "Line": 9, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 218, - "End": 231, - "Line": 9, - "Column": 28 - }, - "Value": "NotInSchema" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 230, - "End": 300, - "Line": 9, - "Column": 40 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 256, - "End": 282, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 256, - "End": 282, - "Line": 10, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.OperationWithTwoVariablesThatHaveTheSameName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.OperationWithTwoVariablesThatHaveTheSameName.snap index c714f161318..78a6589d555 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.OperationWithTwoVariablesThatHaveTheSameName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.OperationWithTwoVariablesThatHaveTheSameName.snap @@ -14,55 +14,6 @@ "variableType": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variable-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 86, - "End": 109, - "Line": 3, - "Column": 45 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 86, - "End": 100, - "Line": 3, - "Column": 45 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 87, - "End": 100, - "Line": 3, - "Column": 46 - }, - "Value": "atOtherHomes" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 101, - "End": 109, - "Line": 3, - "Column": 60 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 101, - "End": 109, - "Line": 3, - "Column": 60 - }, - "Value": "Boolean" - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_10000_query.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_10000_query.snap index 64189147060..2e38ff42b7e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_10000_query.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_10000_query.snap @@ -15,40 +15,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 17, - "End": 19, - "Line": 1, - "Column": 18 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 17, - "End": 22, - "Line": 1, - "Column": 18 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 19, - "End": 22, - "Line": 1, - "Column": 20 - }, - "Value": "e" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `f` does not exist on the type `Query`.", @@ -66,40 +33,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 21, - "End": 23, - "Line": 1, - "Column": 22 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 21, - "End": 26, - "Line": 1, - "Column": 22 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 26, - "Line": 1, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `g` does not exist on the type `Query`.", @@ -117,40 +51,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 25, - "End": 27, - "Line": 1, - "Column": 26 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25, - "End": 30, - "Line": 1, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 27, - "End": 30, - "Line": 1, - "Column": 28 - }, - "Value": "g" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `h` does not exist on the type `Query`.", @@ -168,40 +69,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 1, - "Column": 30 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 29, - "End": 34, - "Line": 1, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 34, - "Line": 1, - "Column": 32 - }, - "Value": "h" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `i` does not exist on the type `Query`.", @@ -219,39 +87,6 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 35, - "Line": 1, - "Column": 34 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 33, - "End": 38, - "Line": 1, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 35, - "End": 38, - "Line": 1, - "Column": 36 - }, - "Value": "i" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_1000_query.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_1000_query.snap index 64189147060..2e38ff42b7e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_1000_query.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_1000_query.snap @@ -15,40 +15,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 17, - "End": 19, - "Line": 1, - "Column": 18 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 17, - "End": 22, - "Line": 1, - "Column": 18 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 19, - "End": 22, - "Line": 1, - "Column": 20 - }, - "Value": "e" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `f` does not exist on the type `Query`.", @@ -66,40 +33,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 21, - "End": 23, - "Line": 1, - "Column": 22 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 21, - "End": 26, - "Line": 1, - "Column": 22 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 26, - "Line": 1, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `g` does not exist on the type `Query`.", @@ -117,40 +51,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 25, - "End": 27, - "Line": 1, - "Column": 26 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25, - "End": 30, - "Line": 1, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 27, - "End": 30, - "Line": 1, - "Column": 28 - }, - "Value": "g" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `h` does not exist on the type `Query`.", @@ -168,40 +69,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 1, - "Column": 30 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 29, - "End": 34, - "Line": 1, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 34, - "Line": 1, - "Column": 32 - }, - "Value": "h" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `i` does not exist on the type `Query`.", @@ -219,39 +87,6 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 35, - "Line": 1, - "Column": 34 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 33, - "End": 38, - "Line": 1, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 35, - "End": 38, - "Line": 1, - "Column": 36 - }, - "Value": "i" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_100_query.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_100_query.snap index 64189147060..2e38ff42b7e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_100_query.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_100_query.snap @@ -15,40 +15,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 17, - "End": 19, - "Line": 1, - "Column": 18 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 17, - "End": 22, - "Line": 1, - "Column": 18 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 19, - "End": 22, - "Line": 1, - "Column": 20 - }, - "Value": "e" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `f` does not exist on the type `Query`.", @@ -66,40 +33,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 21, - "End": 23, - "Line": 1, - "Column": 22 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 21, - "End": 26, - "Line": 1, - "Column": 22 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 26, - "Line": 1, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `g` does not exist on the type `Query`.", @@ -117,40 +51,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 25, - "End": 27, - "Line": 1, - "Column": 26 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25, - "End": 30, - "Line": 1, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 27, - "End": 30, - "Line": 1, - "Column": 28 - }, - "Value": "g" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `h` does not exist on the type `Query`.", @@ -168,40 +69,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 1, - "Column": 30 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 29, - "End": 34, - "Line": 1, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 34, - "Line": 1, - "Column": 32 - }, - "Value": "h" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `i` does not exist on the type `Query`.", @@ -219,39 +87,6 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 35, - "Line": 1, - "Column": 34 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 33, - "End": 38, - "Line": 1, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 35, - "End": 38, - "Line": 1, - "Column": 36 - }, - "Value": "i" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_25000_query.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_25000_query.snap index 64189147060..2e38ff42b7e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_25000_query.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_25000_query.snap @@ -15,40 +15,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 17, - "End": 19, - "Line": 1, - "Column": 18 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 17, - "End": 22, - "Line": 1, - "Column": 18 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 19, - "End": 22, - "Line": 1, - "Column": 20 - }, - "Value": "e" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `f` does not exist on the type `Query`.", @@ -66,40 +33,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 21, - "End": 23, - "Line": 1, - "Column": 22 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 21, - "End": 26, - "Line": 1, - "Column": 22 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 26, - "Line": 1, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `g` does not exist on the type `Query`.", @@ -117,40 +51,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 25, - "End": 27, - "Line": 1, - "Column": 26 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25, - "End": 30, - "Line": 1, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 27, - "End": 30, - "Line": 1, - "Column": 28 - }, - "Value": "g" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `h` does not exist on the type `Query`.", @@ -168,40 +69,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 1, - "Column": 30 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 29, - "End": 34, - "Line": 1, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 34, - "Line": 1, - "Column": 32 - }, - "Value": "h" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `i` does not exist on the type `Query`.", @@ -219,39 +87,6 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 35, - "Line": 1, - "Column": 34 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 33, - "End": 38, - "Line": 1, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 35, - "End": 38, - "Line": 1, - "Column": 36 - }, - "Value": "i" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_30000_query.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_30000_query.snap index 64189147060..2e38ff42b7e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_30000_query.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_30000_query.snap @@ -15,40 +15,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 17, - "End": 19, - "Line": 1, - "Column": 18 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 17, - "End": 22, - "Line": 1, - "Column": 18 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 19, - "End": 22, - "Line": 1, - "Column": 20 - }, - "Value": "e" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `f` does not exist on the type `Query`.", @@ -66,40 +33,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 21, - "End": 23, - "Line": 1, - "Column": 22 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 21, - "End": 26, - "Line": 1, - "Column": 22 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 26, - "Line": 1, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `g` does not exist on the type `Query`.", @@ -117,40 +51,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 25, - "End": 27, - "Line": 1, - "Column": 26 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25, - "End": 30, - "Line": 1, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 27, - "End": 30, - "Line": 1, - "Column": 28 - }, - "Value": "g" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `h` does not exist on the type `Query`.", @@ -168,40 +69,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 1, - "Column": 30 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 29, - "End": 34, - "Line": 1, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 34, - "Line": 1, - "Column": 32 - }, - "Value": "h" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `i` does not exist on the type `Query`.", @@ -219,39 +87,6 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 35, - "Line": 1, - "Column": 34 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 33, - "End": 38, - "Line": 1, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 35, - "End": 38, - "Line": 1, - "Column": 36 - }, - "Value": "i" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_50000_query.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_50000_query.snap index 64189147060..2e38ff42b7e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_50000_query.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Produce_Many_Errors_50000_query.snap @@ -15,40 +15,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 17, - "End": 19, - "Line": 1, - "Column": 18 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 17, - "End": 22, - "Line": 1, - "Column": 18 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 19, - "End": 22, - "Line": 1, - "Column": 20 - }, - "Value": "e" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `f` does not exist on the type `Query`.", @@ -66,40 +33,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 21, - "End": 23, - "Line": 1, - "Column": 22 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 21, - "End": 26, - "Line": 1, - "Column": 22 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 26, - "Line": 1, - "Column": 24 - }, - "Value": "f" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `g` does not exist on the type `Query`.", @@ -117,40 +51,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 25, - "End": 27, - "Line": 1, - "Column": 26 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25, - "End": 30, - "Line": 1, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 27, - "End": 30, - "Line": 1, - "Column": 28 - }, - "Value": "g" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `h` does not exist on the type `Query`.", @@ -168,40 +69,7 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 1, - "Column": 30 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 29, - "End": 34, - "Line": 1, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 34, - "Line": 1, - "Column": 32 - }, - "Value": "h" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `i` does not exist on the type `Query`.", @@ -219,39 +87,6 @@ "responseName": "a", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 35, - "Line": 1, - "Column": 34 - }, - "Value": "a" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 33, - "End": 38, - "Line": 1, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 35, - "End": 38, - "Line": 1, - "Column": 36 - }, - "Value": "i" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueriesWithInvalidVariableTypes.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueriesWithInvalidVariableTypes.snap index 460b3862771..5780d91b0f9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueriesWithInvalidVariableTypes.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueriesWithInvalidVariableTypes.snap @@ -14,89 +14,7 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 111, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 32, - "Line": 2, - "Column": 23 - }, - "Value": "takesCat" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 32, - "End": 42, - "Line": 2, - "Column": 32 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 32, - "End": 37, - "Line": 2, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 37, - "Line": 2, - "Column": 33 - }, - "Value": "cat" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Value": "Cat" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 43, - "End": 111, - "Line": 2, - "Column": 43 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "Operation `takesDogBang` has a empty selection set. Root types without subfields are disallowed.", @@ -113,98 +31,7 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 106, - "End": 205, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 112, - "End": 125, - "Line": 6, - "Column": 23 - }, - "Value": "takesDogBang" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 125, - "End": 136, - "Line": 6, - "Column": 36 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 125, - "End": 130, - "Line": 6, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 126, - "End": 130, - "Line": 6, - "Column": 37 - }, - "Value": "dog" - } - }, - "Type": { - "Kind": "NonNullType", - "Location": { - "Start": 134, - "End": 136, - "Line": 6, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Value": "Dog" - } - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 137, - "End": 205, - "Line": 6, - "Column": 48 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "Operation `takesListOfPet` has a empty selection set. Root types without subfields are disallowed.", @@ -221,98 +48,7 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 200, - "End": 303, - "Line": 10, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 206, - "End": 221, - "Line": 10, - "Column": 23 - }, - "Value": "takesListOfPet" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 221, - "End": 234, - "Line": 10, - "Column": 38 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 221, - "End": 227, - "Line": 10, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 222, - "End": 227, - "Line": 10, - "Column": 39 - }, - "Value": "pets" - } - }, - "Type": { - "Kind": "ListType", - "Location": { - "Start": 228, - "End": 234, - "Line": 10, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Value": "Pet" - } - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 235, - "End": 303, - "Line": 10, - "Column": 52 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "Operation `takesCatOrDog` has a empty selection set. Root types without subfields are disallowed.", @@ -329,89 +65,7 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 298, - "End": 384, - "Line": 14, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 304, - "End": 318, - "Line": 14, - "Column": 23 - }, - "Value": "takesCatOrDog" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 318, - "End": 338, - "Line": 14, - "Column": 37 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 318, - "End": 328, - "Line": 14, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 319, - "End": 328, - "Line": 14, - "Column": 38 - }, - "Value": "catOrDog" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Value": "CatOrDog" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 339, - "End": 384, - "Line": 14, - "Column": 58 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "The type of variable `cat` is not an input type.", @@ -428,56 +82,7 @@ "variableType": "Cat", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 32, - "End": 42, - "Line": 2, - "Column": 32 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 32, - "End": 37, - "Line": 2, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 37, - "Line": 2, - "Column": 33 - }, - "Value": "cat" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Value": "Cat" - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: cat.", @@ -492,89 +97,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 111, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 32, - "Line": 2, - "Column": 23 - }, - "Value": "takesCat" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 32, - "End": 42, - "Line": 2, - "Column": 32 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 32, - "End": 37, - "Line": 2, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 37, - "Line": 2, - "Column": 33 - }, - "Value": "cat" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Value": "Cat" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 43, - "End": 111, - "Line": 2, - "Column": 43 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "The type of variable `dog` is not an input type.", @@ -591,65 +114,7 @@ "variableType": "Dog!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 125, - "End": 136, - "Line": 6, - "Column": 36 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 125, - "End": 130, - "Line": 6, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 126, - "End": 130, - "Line": 6, - "Column": 37 - }, - "Value": "dog" - } - }, - "Type": { - "Kind": "NonNullType", - "Location": { - "Start": 134, - "End": 136, - "Line": 6, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Value": "Dog" - } - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: dog.", @@ -664,98 +129,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 106, - "End": 205, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 112, - "End": 125, - "Line": 6, - "Column": 23 - }, - "Value": "takesDogBang" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 125, - "End": 136, - "Line": 6, - "Column": 36 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 125, - "End": 130, - "Line": 6, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 126, - "End": 130, - "Line": 6, - "Column": 37 - }, - "Value": "dog" - } - }, - "Type": { - "Kind": "NonNullType", - "Location": { - "Start": 134, - "End": 136, - "Line": 6, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Value": "Dog" - } - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 137, - "End": 205, - "Line": 6, - "Column": 48 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "The type of variable `pets` is not an input type.", @@ -772,65 +146,7 @@ "variableType": "[Pet]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 221, - "End": 234, - "Line": 10, - "Column": 38 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 221, - "End": 227, - "Line": 10, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 222, - "End": 227, - "Line": 10, - "Column": 39 - }, - "Value": "pets" - } - }, - "Type": { - "Kind": "ListType", - "Location": { - "Start": 228, - "End": 234, - "Line": 10, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Value": "Pet" - } - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: pets.", @@ -845,98 +161,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 200, - "End": 303, - "Line": 10, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 206, - "End": 221, - "Line": 10, - "Column": 23 - }, - "Value": "takesListOfPet" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 221, - "End": 234, - "Line": 10, - "Column": 38 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 221, - "End": 227, - "Line": 10, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 222, - "End": 227, - "Line": 10, - "Column": 39 - }, - "Value": "pets" - } - }, - "Type": { - "Kind": "ListType", - "Location": { - "Start": 228, - "End": 234, - "Line": 10, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Value": "Pet" - } - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 235, - "End": 303, - "Line": 10, - "Column": 52 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "The type of variable `catOrDog` is not an input type.", @@ -953,56 +178,7 @@ "variableType": "CatOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 318, - "End": 338, - "Line": 14, - "Column": 37 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 318, - "End": 328, - "Line": 14, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 319, - "End": 328, - "Line": 14, - "Column": 38 - }, - "Value": "catOrDog" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Value": "CatOrDog" - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: catOrDog.", @@ -1017,88 +193,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 298, - "End": 384, - "Line": 14, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 304, - "End": 318, - "Line": 14, - "Column": 23 - }, - "Value": "takesCatOrDog" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 318, - "End": 338, - "Line": 14, - "Column": 37 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 318, - "End": 328, - "Line": 14, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 319, - "End": 328, - "Line": 14, - "Column": 38 - }, - "Value": "catOrDog" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Value": "CatOrDog" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 339, - "End": 384, - "Line": 14, - "Column": 58 - }, - "Selections": [] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithOneAnonymousAndOneNamedOperation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithOneAnonymousAndOneNamedOperation.snap index 3b9a78880a8..93036d525ef 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithOneAnonymousAndOneNamedOperation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithOneAnonymousAndOneNamedOperation.snap @@ -13,88 +13,6 @@ "operations": 2, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 136, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 17, - "End": 136, - "Line": 2, - "Column": 17 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 43, - "End": 113, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 39, - "End": 113, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 44, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithTypeSystemDefinitions.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithTypeSystemDefinitions.snap index ed2c528f038..b9e5ac16431 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithTypeSystemDefinitions.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.QueryWithTypeSystemDefinitions.snap @@ -12,71 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Executable-Definitions" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectTypeExtension", - "Interfaces": [], - "Fields": [ - { - "Kind": "FieldDefinition", - "Description": null, - "Arguments": [], - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 223, - "End": 247, - "Line": 10, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 223, - "End": 247, - "Line": 10, - "Column": 28 - }, - "Value": "String" - } - }, - "Location": { - "Start": 216, - "End": 247, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 216, - "End": 222, - "Line": 10, - "Column": 21 - }, - "Value": "color" - }, - "Directives": [] - } - ], - "Location": { - "Start": 178, - "End": 260, - "Line": 9, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 190, - "End": 195, - "Line": 9, - "Column": 29 - }, - "Value": "Dog" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `color` does not exist on the type `Dog`.", @@ -103,30 +39,6 @@ "responseName": "color", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 115, - "End": 142, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 115, - "End": 142, - "Line": 5, - "Column": 25 - }, - "Value": "color" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.RequiredFieldIsNull.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.RequiredFieldIsNull.snap index 0fab55c5565..a030a5da5ec 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.RequiredFieldIsNull.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.RequiredFieldIsNull.snap @@ -22,35 +22,6 @@ "field": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 59, - "End": 71, - "Line": 3, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 59, - "End": 64, - "Line": 3, - "Column": 41 - }, - "Value": "name" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 65, - "End": 71, - "Line": 3, - "Column": 47 - }, - "Value": null - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ScalarSelectionsNotAllowedOnInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ScalarSelectionsNotAllowedOnInt.snap index 41e51e8781e..073fdf2b8b8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ScalarSelectionsNotAllowedOnInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.ScalarSelectionsNotAllowedOnInt.snap @@ -25,64 +25,6 @@ "responseName": "barkVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 80, - "End": 167, - "Line": 4, - "Column": 36 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 110, - "End": 145, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 110, - "End": 145, - "Line": 5, - "Column": 29 - }, - "Value": "sinceWhen" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 69, - "End": 167, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 81, - "Line": 4, - "Column": 25 - }, - "Value": "barkVolume" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Short_Long_Names.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Short_Long_Names.snap index 9c0bdcb6f65..9e3150ebfbe 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Short_Long_Names.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Short_Long_Names.snap @@ -15,40 +15,7 @@ "responseName": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 1, - "End": 12502, - "Line": 1, - "Column": 2 - }, - "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 1, - "End": 37503, - "Line": 1, - "Column": 2 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 12502, - "End": 37503, - "Line": 1, - "Column": 12503 - }, - "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 25003, - "End":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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25003, - "End": 50005, - "Line": 1, - "Column": 25004 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 37504, - "End": 50005, - "Line": 1, - "Column": 37505 - }, - "Value": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb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bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.SkipDirectiveIsInTheWrongPlace.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.SkipDirectiveIsInTheWrongPlace.snap index f4216b5a43f..1bab7515cb3 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.SkipDirectiveIsInTheWrongPlace.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.SkipDirectiveIsInTheWrongPlace.snap @@ -16,31 +16,7 @@ "responseName": "field", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 61, - "End": 84, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 61, - "End": 84, - "Line": 3, - "Column": 21 - }, - "Value": "field" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The specified directive is not valid the current location.", @@ -55,66 +31,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-In-Valid-Locations" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 23, - "End": 40, - "Line": 2, - "Column": 23 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 29, - "Line": 2, - "Column": 24 - }, - "Value": "skip" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 29, - "End": 38, - "Line": 2, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 32, - "Line": 2, - "Column": 29 - }, - "Value": "if" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 33, - "End": 38, - "Line": 2, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 34, - "End": 38, - "Line": 2, - "Column": 34 - }, - "Value": "foo" - } - } - } - ] - } + "Exception": null }, { "Message": "The following variables were not declared: foo.", @@ -129,114 +46,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 97, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 23, - "End": 40, - "Line": 2, - "Column": 23 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 29, - "Line": 2, - "Column": 24 - }, - "Value": "skip" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 29, - "End": 38, - "Line": 2, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 32, - "Line": 2, - "Column": 29 - }, - "Value": "if" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 33, - "End": 38, - "Line": 2, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 34, - "End": 38, - "Line": 2, - "Column": 34 - }, - "Value": "foo" - } - } - } - ] - } - ], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 39, - "End": 97, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 61, - "End": 84, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 61, - "End": 84, - "Line": 3, - "Column": 21 - }, - "Value": "field" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.StringIntoInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.StringIntoInt.snap index e842bada09a..f45be1c20b1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.StringIntoInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.StringIntoInt.snap @@ -29,17 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 227, - "End": 233, - "Line": 9, - "Column": 41 - }, - "Value": "123", - "Block": false - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.TwoQueryOperationsWithTheSameName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.TwoQueryOperationsWithTheSameName.snap index 2213a2c126a..d3598a3d6fc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.TwoQueryOperationsWithTheSameName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.TwoQueryOperationsWithTheSameName.snap @@ -13,131 +13,6 @@ "operation": "getName", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Operation-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 145, - "End": 330, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 151, - "End": 160, - "Line": 8, - "Column": 23 - }, - "Value": "getName" - }, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 159, - "End": 330, - "Line": 8, - "Column": 31 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 185, - "End": 317, - "Line": 9, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 217, - "End": 299, - "Line": 10, - "Column": 31 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 247, - "End": 277, - "Line": 11, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 247, - "End": 277, - "Line": 11, - "Column": 29 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 211, - "End": 299, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 211, - "End": 218, - "Line": 10, - "Column": 25 - }, - "Value": "owner" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 181, - "End": 317, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 181, - "End": 186, - "Line": 9, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Type_query_repeated_6250.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Type_query_repeated_6250.snap index fcebaf6acac..0d8567b7624 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Type_query_repeated_6250.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Type_query_repeated_6250.snap @@ -13,55 +13,7 @@ "operations": 6250, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 49992, - "End": 50001, - "Line": 1, - "Column": 49993 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 49992, - "End": 50001, - "Line": 1, - "Column": 49993 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 49993, - "End": 50000, - "Line": 1, - "Column": 49994 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 49993, - "End": 50000, - "Line": 1, - "Column": 49994 - }, - "Value": "__type" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "`__type` is an object, interface or union type field. Leaf selections on objects, interfaces, and unions without subfields are disallowed.", @@ -80,31 +32,7 @@ "responseName": "__type", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 1, - "End": 8, - "Line": 1, - "Column": 2 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 1, - "End": 8, - "Line": 1, - "Column": 2 - }, - "Value": "__type" - }, - "Directives": [] - } + "Exception": null }, { "Message": "`__type` is an object, interface or union type field. Leaf selections on objects, interfaces, and unions without subfields are disallowed.", @@ -123,31 +51,7 @@ "responseName": "__type", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 9, - "End": 16, - "Line": 1, - "Column": 10 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 9, - "End": 16, - "Line": 1, - "Column": 10 - }, - "Value": "__type" - }, - "Directives": [] - } + "Exception": null }, { "Message": "`__type` is an object, interface or union type field. Leaf selections on objects, interfaces, and unions without subfields are disallowed.", @@ -166,31 +70,7 @@ "responseName": "__type", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 17, - "End": 24, - "Line": 1, - "Column": 18 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 17, - "End": 24, - "Line": 1, - "Column": 18 - }, - "Value": "__type" - }, - "Directives": [] - } + "Exception": null }, { "Message": "`__type` is an object, interface or union type field. Leaf selections on objects, interfaces, and unions without subfields are disallowed.", @@ -209,30 +89,6 @@ "responseName": "__type", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 25, - "End": 32, - "Line": 1, - "Column": 26 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 25, - "End": 32, - "Line": 1, - "Column": 26 - }, - "Value": "__type" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Typename_query_repeated_4167.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Typename_query_repeated_4167.snap index 204c322ecb8..12785ef65dc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Typename_query_repeated_4167.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.Typename_query_repeated_4167.snap @@ -13,54 +13,6 @@ "operations": 4167, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 49992, - "End": 50005, - "Line": 1, - "Column": 49993 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 49992, - "End": 50005, - "Line": 1, - "Column": 49993 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 49993, - "End": 50004, - "Line": 1, - "Column": 49994 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 49993, - "End": 50004, - "Line": 1, - "Column": 49994 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UndefinedFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UndefinedFragment.snap index 2da0bff2b1c..e94d67a12b5 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UndefinedFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UndefinedFragment.snap @@ -22,26 +22,6 @@ "fragment": "undefinedFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-target-defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 69, - "End": 111, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 72, - "End": 111, - "Line": 4, - "Column": 28 - }, - "Value": "undefinedFragment" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnsupportedDirective.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnsupportedDirective.snap index 97fe59b4c92..4c8fbfcd30a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnsupportedDirective.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnsupportedDirective.snap @@ -26,56 +26,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Directives-Are-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 74, - "End": 111, - "Line": 4, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 79, - "Line": 4, - "Column": 31 - }, - "Value": "foo" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 79, - "End": 89, - "Line": 4, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 79, - "End": 83, - "Line": 4, - "Column": 35 - }, - "Value": "bar" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 84, - "End": 89, - "Line": 4, - "Column": 40 - }, - "Value": true - } - } - ] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnusedFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnusedFragment.snap index c8b9d6e9003..c7dd7be8d83 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnusedFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.UnusedFragment.snap @@ -13,81 +13,6 @@ "fragment": "nameFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 42, - "End": 47, - "Line": 2, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 42, - "End": 47, - "Line": 2, - "Column": 42 - }, - "Value": "Dog" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 46, - "End": 118, - "Line": 2, - "Column": 46 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 77, - "End": 99, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 77, - "End": 99, - "Line": 3, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 17, - "End": 118, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 26, - "End": 41, - "Line": 2, - "Column": 26 - }, - "Value": "nameFragment" - }, - "Directives": [] - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.VariableNotUsedWithinFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.VariableNotUsedWithinFragment.snap index 330a70fee3c..374d93c4e66 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.VariableNotUsedWithinFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/DocumentValidatorTests.VariableNotUsedWithinFragment.snap @@ -12,143 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 235, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 53, - "Line": 2, - "Column": 23 - }, - "Value": "variableNotUsedWithinFragment" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 53, - "End": 76, - "Line": 2, - "Column": 53 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 53, - "End": 67, - "Line": 2, - "Column": 53 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 54, - "End": 67, - "Line": 2, - "Column": 54 - }, - "Value": "atOtherHomes" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 68, - "End": 76, - "Line": 2, - "Column": 68 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 68, - "End": 76, - "Line": 2, - "Column": 68 - }, - "Value": "Boolean" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 77, - "End": 235, - "Line": 2, - "Column": 77 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 103, - "End": 209, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 129, - "End": 191, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 132, - "End": 191, - "Line": 4, - "Column": 28 - }, - "Value": "isHouseTrainedWithoutVariableFragment" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 99, - "End": 209, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 99, - "End": 104, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithSchemaDefinitions.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithSchemaDefinitions.snap index ab88cb5dbe3..726b4bab4b7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithSchemaDefinitions.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithSchemaDefinitions.snap @@ -12,48 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Executable-Definitions" }, - "Exception": null, - "SyntaxNode": { - "Kind": "SchemaDefinition", - "Description": null, - "Location": { - "Start": 17, - "End": 98, - "Line": 2, - "Column": 17 - }, - "Directives": [], - "OperationTypes": [ - { - "Kind": "OperationTypeDefinition", - "Location": { - "Start": 46, - "End": 76, - "Line": 3, - "Column": 21 - }, - "Operation": "Query", - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 53, - "End": 76, - "Line": 3, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 53, - "End": 76, - "Line": 3, - "Column": 28 - }, - "Value": "Query" - } - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithTypeDefinitions.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithTypeDefinitions.snap index 9fcabb3f146..801c2c151b7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithTypeDefinitions.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.GoodExecuableDefinitionsWithTypeDefinitions.snap @@ -12,71 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Executable-Definitions" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectTypeDefinition", - "Description": null, - "Interfaces": [], - "Fields": [ - { - "Kind": "FieldDefinition", - "Description": null, - "Arguments": [], - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 177, - "End": 201, - "Line": 8, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 177, - "End": 201, - "Line": 8, - "Column": 27 - }, - "Value": "String" - } - }, - "Location": { - "Start": 171, - "End": 201, - "Line": 8, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 176, - "Line": 8, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ], - "Location": { - "Start": 140, - "End": 224, - "Line": 7, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 145, - "End": 150, - "Line": 7, - "Column": 22 - }, - "Value": "Cow" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.QueryWithTypeSystemDefinitions.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.QueryWithTypeSystemDefinitions.snap index 9aa91b277a1..7d6fb4607e2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.QueryWithTypeSystemDefinitions.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ExecutableDefinitionsRuleTests.QueryWithTypeSystemDefinitions.snap @@ -12,70 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Executable-Definitions" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectTypeExtension", - "Interfaces": [], - "Fields": [ - { - "Kind": "FieldDefinition", - "Description": null, - "Arguments": [], - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 223, - "End": 247, - "Line": 10, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 223, - "End": 247, - "Line": 10, - "Column": 28 - }, - "Value": "String" - } - }, - "Location": { - "Start": 216, - "End": 247, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 216, - "End": 222, - "Line": 10, - "Column": 21 - }, - "Value": "color" - }, - "Directives": [] - } - ], - "Location": { - "Start": 178, - "End": 260, - "Line": 9, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 190, - "End": 195, - "Line": 9, - "Column": 29 - }, - "Value": "Dog" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DefinedOnImplementorsButNotInterfaceOnPet.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DefinedOnImplementorsButNotInterfaceOnPet.snap index 552411d164a..22ac9df28da 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DefinedOnImplementorsButNotInterfaceOnPet.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DefinedOnImplementorsButNotInterfaceOnPet.snap @@ -23,29 +23,5 @@ "responseName": "nickname", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 248, - "End": 274, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 248, - "End": 274, - "Line": 9, - "Column": 21 - }, - "Value": "nickname" - }, - "Directives": [] - } + "Exception": null } diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DirectFieldSelectionOnUnion.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DirectFieldSelectionOnUnion.snap index 076d53b9796..e9e80eeae67 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DirectFieldSelectionOnUnion.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.DirectFieldSelectionOnUnion.snap @@ -21,64 +21,5 @@ "type": "CatOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "SelectionSet", - "Location": { - "Start": 218, - "End": 306, - "Line": 8, - "Column": 66 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 240, - "End": 275, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 240, - "End": 275, - "Line": 9, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 265, - "End": 293, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 265, - "End": 293, - "Line": 10, - "Column": 21 - }, - "Value": "barkVolume" - }, - "Directives": [] - } - ] - } + "Exception": null } diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.FieldIsNotDefinedOnTypeInFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.FieldIsNotDefinedOnTypeInFragment.snap index 4186fee9664..6749e3d80d9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.FieldIsNotDefinedOnTypeInFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldMustBeDefinedRuleTests.FieldIsNotDefinedOnTypeInFragment.snap @@ -24,31 +24,7 @@ "responseName": "meowVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 268, - "End": 296, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 268, - "End": 296, - "Line": 10, - "Column": 21 - }, - "Value": "meowVolume" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `kawVolume` does not exist on the type `Dog`.", @@ -75,39 +51,6 @@ "responseName": "barkVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 386, - "End": 397, - "Line": 14, - "Column": 21 - }, - "Value": "barkVolume" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 386, - "End": 425, - "Line": 14, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 398, - "End": 425, - "Line": 14, - "Column": 33 - }, - "Value": "kawVolume" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.AliasMaskingDirectFieldAccess.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.AliasMaskingDirectFieldAccess.snap index 12db0fd1469..d7d7b151ca2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.AliasMaskingDirectFieldAccess.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.AliasMaskingDirectFieldAccess.snap @@ -24,30 +24,6 @@ "responseNameB": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 268, - "End": 290, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 268, - "End": 290, - "Line": 10, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ComparesDeepTypesIncludingList.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ComparesDeepTypesIncludingList.snap index d718246782c..200ec9974fd 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ComparesDeepTypesIncludingList.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ComparesDeepTypesIncludingList.snap @@ -24,39 +24,6 @@ "responseNameB": "id", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 161, - "End": 164, - "Line": 7, - "Column": 29 - }, - "Value": "id" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 161, - "End": 195, - "Line": 7, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 165, - "End": 195, - "Line": 7, - "Column": 33 - }, - "Value": "name" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgNames.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgNames.snap index d0b04b161e3..d75990c9e81 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgNames.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgNames.snap @@ -24,61 +24,7 @@ "responseName": "isAtLocation", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 218, - "End": 223, - "Line": 9, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 218, - "End": 220, - "Line": 9, - "Column": 34 - }, - "Value": "x" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 221, - "End": 223, - "Line": 9, - "Column": 37 - }, - "Value": "0" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 205, - "End": 256, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 205, - "End": 218, - "Line": 9, - "Column": 21 - }, - "Value": "isAtLocation" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The field `isAtLocation` does not exist on the type `Dog`.", @@ -105,60 +51,6 @@ "responseName": "isAtLocation", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 257, - "End": 262, - "Line": 10, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 257, - "End": 259, - "Line": 10, - "Column": 34 - }, - "Value": "y" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 260, - "End": 262, - "Line": 10, - "Column": 37 - }, - "Value": "0" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 244, - "End": 280, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 244, - "End": 257, - "Line": 10, - "Column": 21 - }, - "Value": "isAtLocation" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgValues.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgValues.snap index 7519f306238..dd950e9f81a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgValues.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgValues.snap @@ -24,60 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 274, - "End": 291, - "Line": 10, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 274, - "End": 285, - "Line": 10, - "Column": 37 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 286, - "End": 291, - "Line": 10, - "Column": 49 - }, - "Value": "HEEL" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 258, - "End": 309, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 258, - "End": 274, - "Line": 10, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsOnValues.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsOnValues.snap index 0761452f09b..dd950e9f81a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsOnValues.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsOnValues.snap @@ -24,60 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 285, - "End": 302, - "Line": 10, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 285, - "End": 296, - "Line": 10, - "Column": 37 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 297, - "End": 302, - "Line": 10, - "Column": 49 - }, - "Value": "HEEL" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 269, - "End": 320, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 269, - "End": 285, - "Line": 10, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsValueAndVar.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsValueAndVar.snap index 3531d0373ac..dd950e9f81a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsValueAndVar.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsValueAndVar.snap @@ -24,69 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 323, - "End": 347, - "Line": 10, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 323, - "End": 334, - "Line": 10, - "Column": 37 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 335, - "End": 347, - "Line": 10, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 336, - "End": 347, - "Line": 10, - "Column": 50 - }, - "Value": "dogCommand" - } - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 307, - "End": 365, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 307, - "End": 323, - "Line": 10, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsWithVars.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsWithVars.snap index f6ace684e35..dd950e9f81a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsWithVars.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingArgsWithVars.snap @@ -24,69 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 338, - "End": 358, - "Line": 10, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 338, - "End": 349, - "Line": 10, - "Column": 37 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 350, - "End": 358, - "Line": 10, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 351, - "End": 358, - "Line": 10, - "Column": 50 - }, - "Value": "varTwo" - } - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 322, - "End": 376, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 322, - "End": 338, - "Line": 10, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingBecauseAlias.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingBecauseAlias.snap index 50ddc725df7..d7d7b151ca2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingBecauseAlias.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingBecauseAlias.snap @@ -24,30 +24,6 @@ "responseNameB": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 251, - "End": 273, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 251, - "End": 273, - "Line": 10, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponse.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponse.snap index ebf57785a57..ebdc991f675 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponse.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponse.snap @@ -24,48 +24,6 @@ "responseNameB": "someValue", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 369, - "End": 379, - "Line": 13, - "Column": 25 - }, - "Value": "someValue" - }, - "Arguments": [], - "Required": { - "Kind": "RequiredModifier", - "Location": { - "Start": 388, - "End": 411, - "Line": 13, - "Column": 44 - }, - "Element": null - }, - "SelectionSet": null, - "Location": { - "Start": 369, - "End": 411, - "Line": 13, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 380, - "End": 389, - "Line": 13, - "Column": 36 - }, - "Value": "nickname" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponses.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponses.snap index 2010609d628..e03d7821e03 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponses.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingDifferingResponses.snap @@ -24,39 +24,6 @@ "responseNameB": "someValue", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 364, - "End": 374, - "Line": 13, - "Column": 25 - }, - "Value": "someValue" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 364, - "End": 407, - "Line": 13, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 375, - "End": 407, - "Line": 13, - "Column": 36 - }, - "Value": "meowVolume" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingReturnTypesWhichPotentiallyOverlap.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingReturnTypesWhichPotentiallyOverlap.snap index a4ac6a86b5d..335a99441cf 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingReturnTypesWhichPotentiallyOverlap.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ConflictingReturnTypesWhichPotentiallyOverlap.snap @@ -24,30 +24,6 @@ "responseNameB": "scalar", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 227, - "End": 259, - "Line": 8, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 227, - "End": 259, - "Line": 8, - "Column": 29 - }, - "Value": "scalar" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflict.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflict.snap index e1b0a53a72d..f3e135eb494 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflict.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflict.snap @@ -24,39 +24,6 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 144, - "End": 146, - "Line": 7, - "Column": 25 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 144, - "End": 170, - "Line": 7, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 147, - "End": 170, - "Line": 7, - "Column": 28 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflictWithMultipleIssues.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflictWithMultipleIssues.snap index 87834359155..44398908b5f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflictWithMultipleIssues.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DeepConflictWithMultipleIssues.snap @@ -24,40 +24,7 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 174, - "End": 176, - "Line": 8, - "Column": 25 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 174, - "End": 204, - "Line": 8, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 177, - "End": 204, - "Line": 8, - "Column": 28 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null }, { "Message": "Encountered fields for the same object that cannot be merged.", @@ -84,39 +51,6 @@ "responseNameB": "y", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 203, - "End": 205, - "Line": 9, - "Column": 25 - }, - "Value": "y" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 203, - "End": 229, - "Line": 9, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 206, - "End": 229, - "Line": 9, - "Column": 28 - }, - "Value": "d" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondAddsAnArgument.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondAddsAnArgument.snap index 0dec8705c6a..dd950e9f81a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondAddsAnArgument.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondAddsAnArgument.snap @@ -24,60 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 257, - "End": 274, - "Line": 10, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 257, - "End": 268, - "Line": 10, - "Column": 37 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 269, - "End": 274, - "Line": 10, - "Column": 49 - }, - "Value": "HEEL" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 241, - "End": 292, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 241, - "End": 257, - "Line": 10, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondMissingAnArgument.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondMissingAnArgument.snap index 4a0a5f862f1..dd950e9f81a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondMissingAnArgument.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferentArgsSecondMissingAnArgument.snap @@ -24,30 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 258, - "End": 291, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 258, - "End": 291, - "Line": 10, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferingArgs.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferingArgs.snap index 1b9df1cae87..dd950e9f81a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferingArgs.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DifferingArgs.snap @@ -24,30 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 249, - "End": 282, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 249, - "End": 282, - "Line": 10, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlap.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlap.snap index 0f8398f5ddf..402d9e02aca 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlap.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlap.snap @@ -24,73 +24,6 @@ "responseNameB": "box", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 304, - "End": 308, - "Line": 10, - "Column": 29 - }, - "Value": "box" - }, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 319, - "End": 415, - "Line": 10, - "Column": 44 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 353, - "End": 389, - "Line": 11, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 353, - "End": 389, - "Line": 11, - "Column": 33 - }, - "Value": "scalar" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 304, - "End": 415, - "Line": 10, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 309, - "End": 320, - "Line": 10, - "Column": 34 - }, - "Value": "stringBox" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlapReverse.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlapReverse.snap index d91f1d2b6fb..0d760363d5c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlapReverse.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeListDespiteNoOverlapReverse.snap @@ -24,73 +24,6 @@ "responseNameB": "box", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 300, - "End": 304, - "Line": 10, - "Column": 29 - }, - "Value": "box" - }, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 319, - "End": 415, - "Line": 10, - "Column": 48 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 353, - "End": 389, - "Line": 11, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 353, - "End": 389, - "Line": 11, - "Column": 33 - }, - "Value": "scalar" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 300, - "End": 415, - "Line": 10, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 305, - "End": 320, - "Line": 10, - "Column": 34 - }, - "Value": "listStringBox" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeNullabilityDespiteNoOverlap.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeNullabilityDespiteNoOverlap.snap index e1c026663b7..bcc02873227 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeNullabilityDespiteNoOverlap.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypeNullabilityDespiteNoOverlap.snap @@ -24,30 +24,6 @@ "responseNameB": "scalar", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 232, - "End": 264, - "Line": 8, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 232, - "End": 264, - "Line": 8, - "Column": 29 - }, - "Value": "scalar" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypesDespiteNoOverlap.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypesDespiteNoOverlap.snap index d40eeb42a82..69892b4d448 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypesDespiteNoOverlap.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingReturnTypesDespiteNoOverlap.snap @@ -24,30 +24,6 @@ "responseNameB": "scalar", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 193, - "End": 221, - "Line": 8, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 193, - "End": 221, - "Line": 8, - "Column": 25 - }, - "Value": "scalar" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingSubfields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingSubfields.snap index bd084fbbeac..e1feb4925a7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingSubfields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.DisallowsDifferingSubfields.snap @@ -24,39 +24,6 @@ "responseNameB": "val", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 193, - "End": 197, - "Line": 6, - "Column": 33 - }, - "Value": "val" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 193, - "End": 242, - "Line": 6, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 198, - "End": 242, - "Line": 6, - "Column": 38 - }, - "Value": "unrelatedField" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.EncountersConflictInFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.EncountersConflictInFragments.snap index 96cdaf6d035..fc02a5170b9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.EncountersConflictInFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.EncountersConflictInFragments.snap @@ -24,39 +24,6 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 228, - "End": 230, - "Line": 12, - "Column": 21 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 228, - "End": 250, - "Line": 12, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 231, - "End": 250, - "Line": 12, - "Column": 24 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.FindsInvalidCaseEvenWithImmediatelyRecursiveFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.FindsInvalidCaseEvenWithImmediatelyRecursiveFragment.snap index bd8397c4caa..33d9b89fc61 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.FindsInvalidCaseEvenWithImmediatelyRecursiveFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.FindsInvalidCaseEvenWithImmediatelyRecursiveFragment.snap @@ -24,39 +24,6 @@ "responseNameB": "fido", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 340, - "End": 345, - "Line": 11, - "Column": 21 - }, - "Value": "fido" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 340, - "End": 372, - "Line": 11, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 346, - "End": 372, - "Line": 11, - "Column": 27 - }, - "Value": "nickname" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictInNestedFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictInNestedFragments.snap index 8a5624cf9b9..00cafb692dc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictInNestedFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictInNestedFragments.snap @@ -24,40 +24,7 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 544, - "End": 546, - "Line": 26, - "Column": 21 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 544, - "End": 566, - "Line": 26, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 547, - "End": 566, - "Line": 26, - "Column": 24 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null }, { "Message": "Encountered fields for the same object that cannot be merged.", @@ -84,39 +51,6 @@ "responseNameB": "y", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 437, - "End": 439, - "Line": 21, - "Column": 21 - }, - "Value": "y" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 437, - "End": 465, - "Line": 21, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 440, - "End": 465, - "Line": 21, - "Column": 24 - }, - "Value": "d" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestor.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestor.snap index 721bb45bd4c..46707d36d1d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestor.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestor.snap @@ -24,39 +24,6 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 189, - "End": 191, - "Line": 8, - "Column": 29 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 189, - "End": 219, - "Line": 8, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 192, - "End": 219, - "Line": 8, - "Column": 32 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestorInFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestorInFragments.snap index 2f2eb739f79..7bc912ca2cb 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestorInFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsDeepConflictToNearestCommonAncestorInFragments.snap @@ -24,40 +24,7 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 156, - "End": 158, - "Line": 15, - "Column": 13 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 156, - "End": 170, - "Line": 15, - "Column": 13 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 159, - "End": 170, - "Line": 15, - "Column": 16 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null }, { "Message": "Encountered fields for the same object that cannot be merged.", @@ -84,39 +51,6 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 116, - "End": 118, - "Line": 12, - "Column": 13 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 116, - "End": 130, - "Line": 12, - "Column": 13 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 119, - "End": 130, - "Line": 12, - "Column": 16 - }, - "Value": "a" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsEachConflictOnce.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsEachConflictOnce.snap index 975f64859fd..4ef5a757558 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsEachConflictOnce.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ReportsEachConflictOnce.snap @@ -24,40 +24,7 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 522, - "End": 524, - "Line": 23, - "Column": 21 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 522, - "End": 544, - "Line": 23, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 525, - "End": 544, - "Line": 23, - "Column": 24 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null }, { "Message": "Encountered fields for the same object that cannot be merged.", @@ -84,40 +51,7 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 440, - "End": 442, - "Line": 19, - "Column": 21 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 440, - "End": 462, - "Line": 19, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 443, - "End": 462, - "Line": 19, - "Column": 24 - }, - "Value": "a" - }, - "Directives": [] - } + "Exception": null }, { "Message": "Encountered fields for the same object that cannot be merged.", @@ -144,40 +78,7 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 336, - "End": 338, - "Line": 14, - "Column": 25 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 336, - "End": 362, - "Line": 14, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 339, - "End": 362, - "Line": 14, - "Column": 28 - }, - "Value": "c" - }, - "Directives": [] - } + "Exception": null }, { "Message": "Encountered fields for the same object that cannot be merged.", @@ -204,39 +105,6 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 336, - "End": 338, - "Line": 14, - "Column": 25 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 336, - "End": 362, - "Line": 14, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 339, - "End": 362, - "Line": 14, - "Column": 28 - }, - "Value": "c" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesAllowedOnNonOverlappingFields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesAllowedOnNonOverlappingFields.snap index 9f353127604..37bc16f464d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesAllowedOnNonOverlappingFields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesAllowedOnNonOverlappingFields.snap @@ -24,39 +24,6 @@ "responseNameB": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 368, - "End": 373, - "Line": 13, - "Column": 25 - }, - "Value": "name" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 368, - "End": 404, - "Line": 13, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 374, - "End": 404, - "Line": 13, - "Column": 31 - }, - "Value": "nickname" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesWithDifferentFieldTargets.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesWithDifferentFieldTargets.snap index 8ec81269689..b68fc26621d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesWithDifferentFieldTargets.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameAliasesWithDifferentFieldTargets.snap @@ -24,39 +24,6 @@ "responseNameB": "fido", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 278, - "End": 283, - "Line": 10, - "Column": 21 - }, - "Value": "fido" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 278, - "End": 310, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 284, - "End": 310, - "Line": 10, - "Column": 27 - }, - "Value": "nickname" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameResponseNameDifferentFieldName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameResponseNameDifferentFieldName.snap index c97a783009a..6bf2902623f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameResponseNameDifferentFieldName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.SameResponseNameDifferentFieldName.snap @@ -24,69 +24,6 @@ "responseNameB": "catOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 124, - "End": 133, - "Line": 6, - "Column": 21 - }, - "Value": "catOrDog" - }, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 145, - "End": 218, - "Line": 6, - "Column": 42 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 171, - "End": 200, - "Line": 7, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 175, - "End": 200, - "Line": 7, - "Column": 29 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 124, - "End": 218, - "Line": 6, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 134, - "End": 146, - "Line": 6, - "Column": 31 - }, - "Value": "dogOrHuman" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ShortHandQueryWithDuplicateFieldInSecondLevelFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ShortHandQueryWithDuplicateFieldInSecondLevelFragment.snap index 9f76415a5b3..3228ed1ebc3 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ShortHandQueryWithDuplicateFieldInSecondLevelFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.ShortHandQueryWithDuplicateFieldInSecondLevelFragment.snap @@ -24,60 +24,6 @@ "responseNameB": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 359, - "End": 376, - "Line": 14, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 359, - "End": 370, - "Line": 14, - "Column": 37 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 371, - "End": 376, - "Line": 14, - "Column": 49 - }, - "Value": "HEEL" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 343, - "End": 394, - "Line": 14, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 343, - "End": 359, - "Line": 14, - "Column": 21 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_Argument_Mismatch.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_Argument_Mismatch.snap index c3185865ac8..1bbad3baf84 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_Argument_Mismatch.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_Argument_Mismatch.snap @@ -24,115 +24,6 @@ "responseNameB": "fields", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 316, - "End": 398, - "Line": 9, - "Column": 57 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 346, - "End": 376, - "Line": 10, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 346, - "End": 376, - "Line": 10, - "Column": 29 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 284, - "End": 398, - "Line": 9, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 284, - "End": 292, - "Line": 9, - "Column": 25 - }, - "Value": "fields" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 291, - "End": 317, - "Line": 9, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 292, - "End": 299, - "Line": 9, - "Column": 33 - }, - "Value": "stream" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 299, - "End": 315, - "Line": 9, - "Column": 40 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 299, - "End": 312, - "Line": 9, - "Column": 40 - }, - "Value": "initialCount" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 313, - "End": 315, - "Line": 9, - "Column": 54 - }, - "Value": "2" - } - } - ] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_On_Some_Fields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_On_Some_Fields.snap index 287381facd3..1bbad3baf84 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_On_Some_Fields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.Stream_On_Some_Fields.snap @@ -24,64 +24,6 @@ "responseNameB": "fields", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 291, - "End": 373, - "Line": 9, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 321, - "End": 351, - "Line": 10, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 321, - "End": 351, - "Line": 10, - "Column": 29 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 284, - "End": 373, - "Line": 9, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 284, - "End": 292, - "Line": 9, - "Column": 25 - }, - "Value": "fields" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.VeryDeepConflict.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.VeryDeepConflict.snap index 13da9cb3c6d..aa5fc658884 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.VeryDeepConflict.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldSelectionMergingRuleTests.VeryDeepConflict.snap @@ -24,39 +24,6 @@ "responseNameB": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selection-Merging" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 236, - "End": 238, - "Line": 10, - "Column": 29 - }, - "Value": "x" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 236, - "End": 266, - "Line": 10, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 239, - "End": 266, - "Line": 10, - "Column": 32 - }, - "Value": "b" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedFieldTargetNotDefined.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedFieldTargetNotDefined.snap index f72a1f1b4e8..898f2db9750 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedFieldTargetNotDefined.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedFieldTargetNotDefined.snap @@ -24,39 +24,6 @@ "responseName": "volume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 92, - "Line": 3, - "Column": 21 - }, - "Value": "volume" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 84, - "End": 120, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 93, - "End": 120, - "Line": 3, - "Column": 30 - }, - "Value": "mooVolume" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedLyingFieldTargetNotDefined.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedLyingFieldTargetNotDefined.snap index 2203cb7b334..8bf49207222 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedLyingFieldTargetNotDefined.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadAliasedLyingFieldTargetNotDefined.snap @@ -24,39 +24,6 @@ "responseName": "barkVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": { - "Kind": "Name", - "Location": { - "Start": 89, - "End": 101, - "Line": 3, - "Column": 21 - }, - "Value": "barkVolume" - }, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 89, - "End": 129, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 102, - "End": 129, - "Line": 3, - "Column": 34 - }, - "Value": "kawVolume" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnFragement.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnFragement.snap index a7b6188f8c9..7a67afb0892 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnFragement.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnFragement.snap @@ -24,30 +24,6 @@ "responseName": "meowVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 71, - "End": 99, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 71, - "End": 99, - "Line": 3, - "Column": 21 - }, - "Value": "meowVolume" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnInlineFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnInlineFragment.snap index f50ff3126ae..9ddb0255d3f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnInlineFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadFieldNotDefinedOnInlineFragment.snap @@ -24,30 +24,6 @@ "responseName": "meowVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 108, - "End": 140, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 108, - "End": 140, - "Line": 4, - "Column": 25 - }, - "Value": "meowVolume" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadIgnoresDeeplyUnknownField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadIgnoresDeeplyUnknownField.snap index 3118ae25530..c6b60c9251e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadIgnoresDeeplyUnknownField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadIgnoresDeeplyUnknownField.snap @@ -24,64 +24,6 @@ "responseName": "unknown_field", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 89, - "End": 175, - "Line": 3, - "Column": 35 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 115, - "End": 157, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 115, - "End": 157, - "Line": 4, - "Column": 25 - }, - "Value": "deeper_unknown_field" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 75, - "End": 175, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 90, - "Line": 3, - "Column": 21 - }, - "Value": "unknown_field" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadNotDefinedOnInterface.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadNotDefinedOnInterface.snap index 8b4a20eb0e6..2e3012439a9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadNotDefinedOnInterface.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadNotDefinedOnInterface.snap @@ -24,30 +24,6 @@ "responseName": "tailLength", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 77, - "End": 105, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 77, - "End": 105, - "Line": 3, - "Column": 21 - }, - "Value": "tailLength" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadReportsErrorWhenTypeIsKnown.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadReportsErrorWhenTypeIsKnown.snap index f800d579cf5..903a0a79086 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadReportsErrorWhenTypeIsKnown.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadReportsErrorWhenTypeIsKnown.snap @@ -24,104 +24,6 @@ "responseName": "unknown_pet_field", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 88, - "End": 238, - "Line": 3, - "Column": 39 - }, - "Selections": [ - { - "Kind": "InlineFragment", - "Location": { - "Start": 114, - "End": 220, - "Line": 4, - "Column": 25 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 121, - "End": 126, - "Line": 4, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 121, - "End": 126, - "Line": 4, - "Column": 32 - }, - "Value": "Cat" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 125, - "End": 220, - "Line": 4, - "Column": 36 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 155, - "End": 198, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 155, - "End": 198, - "Line": 5, - "Column": 29 - }, - "Value": "unknown_cat_field" - }, - "Directives": [] - } - ] - } - } - ] - }, - "Location": { - "Start": 70, - "End": 238, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 70, - "End": 89, - "Line": 3, - "Column": 21 - }, - "Value": "unknown_pet_field" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadSubFieldNotDefined.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadSubFieldNotDefined.snap index 8a25a58a889..cc57063372c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadSubFieldNotDefined.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.BadSubFieldNotDefined.snap @@ -29,30 +29,6 @@ "responseName": "unknown_field", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 107, - "End": 142, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 107, - "End": 142, - "Line": 4, - "Column": 25 - }, - "Value": "unknown_field" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorQueriedOnUnion.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorQueriedOnUnion.snap index 3fbad347257..0939660b5a1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorQueriedOnUnion.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorQueriedOnUnion.snap @@ -22,41 +22,6 @@ "type": "CatOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "SelectionSet", - "Location": { - "Start": 73, - "End": 140, - "Line": 2, - "Column": 73 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 95, - "End": 117, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 95, - "End": 117, - "Line": 3, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorsButNotOnInterface.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorsButNotOnInterface.snap index 4c1b0da73b0..654245dbbe6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorsButNotOnInterface.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DefinedOnImplementorsButNotOnInterface.snap @@ -24,30 +24,6 @@ "responseName": "nickname", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 92, - "End": 118, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 92, - "End": 118, - "Line": 3, - "Column": 21 - }, - "Value": "nickname" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DireftFieldSelectionOnUnion.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DireftFieldSelectionOnUnion.snap index a4d04811cd5..3f463039bb0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DireftFieldSelectionOnUnion.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.DireftFieldSelectionOnUnion.snap @@ -22,41 +22,6 @@ "type": "CatOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "SelectionSet", - "Location": { - "Start": 66, - "End": 140, - "Line": 2, - "Column": 66 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 88, - "End": 117, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 117, - "Line": 3, - "Column": 21 - }, - "Value": "directField" - }, - "Directives": [] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.WrongFieldsOnUnionTypeList.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.WrongFieldsOnUnionTypeList.snap index 915c6dac9a5..1ed2fe42a28 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.WrongFieldsOnUnionTypeList.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FieldsOnCorrectTypeRuleTests.WrongFieldsOnUnionTypeList.snap @@ -22,41 +22,6 @@ "type": "Foo", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "SelectionSet", - "Location": { - "Start": 50, - "End": 119, - "Line": 3, - "Column": 26 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 76, - "End": 101, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 76, - "End": 101, - "Line": 4, - "Column": 25 - }, - "Value": "qux" - }, - "Directives": [] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.DuplicateFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.DuplicateFragments.snap index 012552506e0..6c1d0798a79 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.DuplicateFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.DuplicateFragments.snap @@ -13,115 +13,6 @@ "fragment": "fragmentOne", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 255, - "End": 260, - "Line": 12, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 255, - "End": 260, - "Line": 12, - "Column": 41 - }, - "Value": "Dog" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 259, - "End": 370, - "Line": 12, - "Column": 45 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 287, - "End": 357, - "Line": 13, - "Column": 27 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 313, - "End": 339, - "Line": 14, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 313, - "End": 339, - "Line": 14, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 281, - "End": 357, - "Line": 13, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 281, - "End": 288, - "Line": 13, - "Column": 21 - }, - "Value": "owner" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 231, - "End": 370, - "Line": 12, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 240, - "End": 254, - "Line": 12, - "Column": 26 - }, - "Value": "fragmentOne" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSame.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSame.snap index 64e2e83611a..0d513320948 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSame.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSame.snap @@ -13,115 +13,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 284, - "End": 291, - "Line": 12, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 284, - "End": 291, - "Line": 12, - "Column": 35 - }, - "Value": "Query" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 290, - "End": 399, - "Line": 12, - "Column": 41 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 316, - "End": 386, - "Line": 13, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 342, - "End": 368, - "Line": 14, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 342, - "End": 368, - "Line": 14, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 312, - "End": 386, - "Line": 13, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 312, - "End": 317, - "Line": 13, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 266, - "End": 399, - "Line": 12, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 275, - "End": 283, - "Line": 12, - "Column": 26 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSameWithoutBeingReferenced.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSameWithoutBeingReferenced.snap index 066ab473c8d..106e0cd7eb6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSameWithoutBeingReferenced.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentNameUniquenessRuleTests.FragmentsNamedTheSameWithoutBeingReferenced.snap @@ -13,116 +13,7 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 202, - "End": 209, - "Line": 8, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 202, - "End": 209, - "Line": 8, - "Column": 35 - }, - "Value": "Query" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 208, - "End": 317, - "Line": 8, - "Column": 41 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 234, - "End": 304, - "Line": 9, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 260, - "End": 286, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 260, - "End": 286, - "Line": 10, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 230, - "End": 304, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 230, - "End": 235, - "Line": 9, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 184, - "End": 317, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 193, - "End": 201, - "Line": 8, - "Column": 26 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The specified fragment `fragA` is not used within the current document.", @@ -138,115 +29,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 202, - "End": 209, - "Line": 8, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 202, - "End": 209, - "Line": 8, - "Column": 35 - }, - "Value": "Query" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 208, - "End": 317, - "Line": 8, - "Column": 41 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 234, - "End": 304, - "Line": 9, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 260, - "End": 286, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 260, - "End": 286, - "Line": 10, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 230, - "End": 304, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 230, - "End": 235, - "Line": 9, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 184, - "End": 317, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 193, - "End": 201, - "Line": 8, - "Column": 26 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObject.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObject.snap index dd7bcc6e867..14a42519c31 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObject.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObject.snap @@ -29,81 +29,6 @@ "fragment": "dogFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 319, - "End": 324, - "Line": 11, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 319, - "End": 324, - "Line": 11, - "Column": 41 - }, - "Value": "Dog" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 323, - "End": 354, - "Line": 11, - "Column": 45 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 325, - "End": 337, - "Line": 11, - "Column": 47 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 325, - "End": 337, - "Line": 11, - "Column": 47 - }, - "Value": "barkVolume" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 295, - "End": 354, - "Line": 11, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 304, - "End": 318, - "Line": 11, - "Column": 26 - }, - "Value": "dogFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObjectInInlineFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObjectInInlineFragment.snap index 9f1427474a5..cc35652c8d1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObjectInInlineFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.DifferentObjectIntoObjectInInlineFragment.snap @@ -28,70 +28,6 @@ "selectionSetType": "Cat", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 290, - "End": 333, - "Line": 11, - "Column": 21 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 297, - "End": 302, - "Line": 11, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 297, - "End": 302, - "Line": 11, - "Column": 28 - }, - "Value": "Dog" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 301, - "End": 333, - "Line": 11, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 303, - "End": 315, - "Line": 11, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 303, - "End": 315, - "Line": 11, - "Column": 34 - }, - "Value": "barkVolume" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.FragmentDoesNotMatchType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.FragmentDoesNotMatchType.snap index 8d0c99b467b..c17546acf3b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.FragmentDoesNotMatchType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.FragmentDoesNotMatchType.snap @@ -24,81 +24,6 @@ "fragment": "fragmentDoesNotMatchType", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 191, - "End": 198, - "Line": 8, - "Column": 54 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 191, - "End": 198, - "Line": 8, - "Column": 54 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 197, - "End": 254, - "Line": 8, - "Column": 60 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 219, - "End": 241, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 219, - "End": 241, - "Line": 9, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 154, - "End": 254, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 163, - "End": 190, - "Line": 8, - "Column": 26 - }, - "Value": "fragmentDoesNotMatchType" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonImplementingObject.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonImplementingObject.snap index f8f9f88a33e..a307f3db81c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonImplementingObject.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonImplementingObject.snap @@ -24,81 +24,6 @@ "fragment": "intelligentFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 283, - "End": 296, - "Line": 9, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 283, - "End": 296, - "Line": 9, - "Column": 49 - }, - "Value": "Intelligent" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 295, - "End": 314, - "Line": 9, - "Column": 61 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 297, - "End": 301, - "Line": 9, - "Column": 63 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 297, - "End": 301, - "Line": 9, - "Column": 63 - }, - "Value": "iq" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 251, - "End": 314, - "Line": 9, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 260, - "End": 282, - "Line": 9, - "Column": 26 - }, - "Value": "intelligentFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterface.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterface.snap index 1f8a9e40863..8320bae5063 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterface.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterface.snap @@ -29,81 +29,6 @@ "fragment": "intelligentFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 383, - "End": 396, - "Line": 13, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 383, - "End": 396, - "Line": 13, - "Column": 49 - }, - "Value": "Intelligent" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 395, - "End": 414, - "Line": 13, - "Column": 61 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 397, - "End": 401, - "Line": 13, - "Column": 63 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 397, - "End": 401, - "Line": 13, - "Column": 63 - }, - "Value": "iq" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 351, - "End": 414, - "Line": 13, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 360, - "End": 382, - "Line": 13, - "Column": 26 - }, - "Value": "intelligentFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterfaceInInlineFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterfaceInInlineFragment.snap index b7a7bf839fd..cc7b79197c0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterfaceInInlineFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingInterfaceInInlineFragment.snap @@ -28,70 +28,6 @@ "selectionSetType": "Pet", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 302, - "End": 344, - "Line": 11, - "Column": 21 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 308, - "End": 321, - "Line": 11, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 308, - "End": 321, - "Line": 11, - "Column": 27 - }, - "Value": "Intelligent" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 320, - "End": 344, - "Line": 11, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 322, - "End": 326, - "Line": 11, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 322, - "End": 326, - "Line": 11, - "Column": 41 - }, - "Value": "iq" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingUnion.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingUnion.snap index 1bfaa637857..2c7639a2ae1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingUnion.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.InterfaceIntoNonOverlappingUnion.snap @@ -24,81 +24,6 @@ "fragment": "petFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 270, - "End": 284, - "Line": 9, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 270, - "End": 284, - "Line": 9, - "Column": 41 - }, - "Value": "HumanOrAlien" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 283, - "End": 304, - "Line": 9, - "Column": 54 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 285, - "End": 291, - "Line": 9, - "Column": 56 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 285, - "End": 291, - "Line": 9, - "Column": 56 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 246, - "End": 304, - "Line": 9, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 255, - "End": 269, - "Line": 9, - "Column": 26 - }, - "Value": "petFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotContainingUnion.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotContainingUnion.snap index b22342636f7..c61185a3740 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotContainingUnion.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotContainingUnion.snap @@ -24,115 +24,6 @@ "fragment": "humanFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 268, - "End": 275, - "Line": 9, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 268, - "End": 275, - "Line": 9, - "Column": 43 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 274, - "End": 304, - "Line": 9, - "Column": 49 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 281, - "End": 291, - "Line": 9, - "Column": 56 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 283, - "End": 289, - "Line": 9, - "Column": 58 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 283, - "End": 289, - "Line": 9, - "Column": 58 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 276, - "End": 291, - "Line": 9, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 276, - "End": 282, - "Line": 9, - "Column": 51 - }, - "Value": "pets" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 242, - "End": 304, - "Line": 9, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 251, - "End": 267, - "Line": 9, - "Column": 26 - }, - "Value": "humanFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotImplementingInterface.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotImplementingInterface.snap index dca8abe016c..30859c4b104 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotImplementingInterface.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.ObjectIntoNotImplementingInterface.snap @@ -29,115 +29,6 @@ "fragment": "humanFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 329, - "End": 336, - "Line": 11, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 329, - "End": 336, - "Line": 11, - "Column": 43 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 335, - "End": 365, - "Line": 11, - "Column": 49 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 342, - "End": 352, - "Line": 11, - "Column": 56 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 344, - "End": 350, - "Line": 11, - "Column": 58 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 344, - "End": 350, - "Line": 11, - "Column": 58 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 337, - "End": 352, - "Line": 11, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 337, - "End": 343, - "Line": 11, - "Column": 51 - }, - "Value": "pets" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 303, - "End": 365, - "Line": 11, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 312, - "End": 328, - "Line": 11, - "Column": 26 - }, - "Value": "humanFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingInterface.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingInterface.snap index f305a82e133..1aa1ea39db9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingInterface.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingInterface.snap @@ -29,81 +29,6 @@ "fragment": "humanOrAlienFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 341, - "End": 355, - "Line": 11, - "Column": 50 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 341, - "End": 355, - "Line": 11, - "Column": 50 - }, - "Value": "HumanOrAlien" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 354, - "End": 381, - "Line": 11, - "Column": 63 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 356, - "End": 368, - "Line": 11, - "Column": 65 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 356, - "End": 368, - "Line": 11, - "Column": 65 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 308, - "End": 381, - "Line": 11, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 317, - "End": 340, - "Line": 11, - "Column": 26 - }, - "Value": "humanOrAlienFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingUnion.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingUnion.snap index dd5dd153868..64e0caabf41 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingUnion.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNonOverlappingUnion.snap @@ -24,81 +24,6 @@ "fragment": "humanOrAlienFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 280, - "End": 294, - "Line": 9, - "Column": 50 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 280, - "End": 294, - "Line": 9, - "Column": 50 - }, - "Value": "HumanOrAlien" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 293, - "End": 320, - "Line": 9, - "Column": 63 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 295, - "End": 307, - "Line": 9, - "Column": 65 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 295, - "End": 307, - "Line": 9, - "Column": 65 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 247, - "End": 320, - "Line": 9, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 256, - "End": 279, - "Line": 9, - "Column": 26 - }, - "Value": "humanOrAlienFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNotContainedObject.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNotContainedObject.snap index e897bac4b95..77507d15789 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNotContainedObject.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadIsPossibleRuleTests.UnionIntoNotContainedObject.snap @@ -24,81 +24,6 @@ "fragment": "catOrDogFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-is-possible" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 268, - "End": 278, - "Line": 9, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 268, - "End": 278, - "Line": 9, - "Column": 46 - }, - "Value": "CatOrDog" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 277, - "End": 304, - "Line": 9, - "Column": 55 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 279, - "End": 291, - "Line": 9, - "Column": 57 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 279, - "End": 291, - "Line": 9, - "Column": 57 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 239, - "End": 304, - "Line": 9, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 248, - "End": 267, - "Line": 9, - "Column": 26 - }, - "Value": "catOrDogFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTargetDefinedRuleTests.UndefinedFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTargetDefinedRuleTests.UndefinedFragment.snap index 501f3253764..27dec8fd9c6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTargetDefinedRuleTests.UndefinedFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTargetDefinedRuleTests.UndefinedFragment.snap @@ -22,26 +22,6 @@ "fragment": "undefinedFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-target-defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 69, - "End": 111, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 72, - "End": 111, - "Line": 4, - "Column": 28 - }, - "Value": "undefinedFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotExistingTypeOnInlineFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotExistingTypeOnInlineFragment.snap index fcbe089139f..c31d488b6ea 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotExistingTypeOnInlineFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotExistingTypeOnInlineFragment.snap @@ -22,70 +22,6 @@ "typeCondition": "NotInSchema", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-Spread-Type-Existence" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 211, - "End": 300, - "Line": 9, - "Column": 21 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 218, - "End": 231, - "Line": 9, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 218, - "End": 231, - "Line": 9, - "Column": 28 - }, - "Value": "NotInSchema" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 230, - "End": 300, - "Line": 9, - "Column": 40 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 256, - "End": 282, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 256, - "End": 282, - "Line": 10, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotOnExistingTypeOnFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotOnExistingTypeOnFragment.snap index 7d1dabf05bd..2b865ca96b7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotOnExistingTypeOnFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadTypeExistenceRuleTests.NotOnExistingTypeOnFragment.snap @@ -23,81 +23,6 @@ "fragment": "notOnExistingType", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-Spread-Type-Existence" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 177, - "End": 190, - "Line": 8, - "Column": 47 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 177, - "End": 190, - "Line": 8, - "Column": 47 - }, - "Value": "NotInSchema" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 189, - "End": 246, - "Line": 8, - "Column": 59 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 211, - "End": 233, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 211, - "End": 233, - "Line": 9, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 147, - "End": 246, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 156, - "End": 176, - "Line": 8, - "Column": 26 - }, - "Value": "notOnExistingType" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnImmediatelyRecursiveFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnImmediatelyRecursiveFragment.snap index 4b082ebe81a..d51d6abfb33 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnImmediatelyRecursiveFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnImmediatelyRecursiveFragment.snap @@ -27,26 +27,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 279, - "End": 310, - "Line": 12, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 283, - "End": 310, - "Line": 12, - "Column": 29 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnRecursiveFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnRecursiveFragment.snap index 14c053be5ee..7b7a21231ba 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnRecursiveFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnRecursiveFragment.snap @@ -22,26 +22,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 214, - "End": 241, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 218, - "End": 241, - "Line": 10, - "Column": 25 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnTransitivelyRecursiveFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnTransitivelyRecursiveFragment.snap index 2b36ea4b932..5ab7de41f32 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnTransitivelyRecursiveFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.DoesNotInfiniteLoopOnTransitivelyRecursiveFragment.snap @@ -22,27 +22,7 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 361, - "End": 371, - "Line": 12, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 364, - "End": 371, - "Line": 12, - "Column": 52 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -67,27 +47,7 @@ "fragment": "fragB", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 243, - "End": 253, - "Line": 10, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 246, - "End": 253, - "Line": 10, - "Column": 52 - }, - "Value": "fragB" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -112,26 +72,6 @@ "fragment": "fragC", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 302, - "End": 312, - "Line": 11, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 305, - "End": 312, - "Line": 11, - "Column": 52 - }, - "Value": "fragC" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle1.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle1.snap index 8d53bfaebd2..afc494e3741 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle1.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle1.snap @@ -22,26 +22,6 @@ "fragment": "nameFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 363, - "End": 396, - "Line": 15, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 366, - "End": 396, - "Line": 15, - "Column": 24 - }, - "Value": "nameFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle2.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle2.snap index 510a02df311..39971e5fa94 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle2.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.FragmentCycle2.snap @@ -22,26 +22,6 @@ "fragment": "nameFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 657, - "End": 690, - "Line": 25, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 660, - "End": 690, - "Line": 25, - "Column": 24 - }, - "Value": "nameFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.InfiniteRecursion.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.InfiniteRecursion.snap index 5ba5b74f23e..e97079bfab8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.InfiniteRecursion.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.InfiniteRecursion.snap @@ -32,26 +32,6 @@ "fragment": "dogFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 432, - "End": 468, - "Line": 18, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 435, - "End": 468, - "Line": 18, - "Column": 28 - }, - "Value": "dogFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeply.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeply.snap index fc89ea53250..2a38a102c61 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeply.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeply.snap @@ -22,27 +22,7 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 532, - "End": 545, - "Line": 15, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 535, - "End": 545, - "Line": 15, - "Column": 44 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -67,26 +47,6 @@ "fragment": "fragO", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 430, - "End": 440, - "Line": 13, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 433, - "End": 440, - "Line": 13, - "Column": 44 - }, - "Value": "fragO" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyAndImmediately.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyAndImmediately.snap index b86684500e2..291b42e056b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyAndImmediately.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyAndImmediately.snap @@ -22,27 +22,7 @@ "fragment": "fragB", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 226, - "End": 239, - "Line": 9, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 239, - "Line": 9, - "Column": 44 - }, - "Value": "fragB" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -67,27 +47,7 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 287, - "End": 300, - "Line": 10, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 290, - "End": 300, - "Line": 10, - "Column": 44 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -112,26 +72,6 @@ "fragment": "fragB", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 297, - "End": 307, - "Line": 10, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 300, - "End": 307, - "Line": 10, - "Column": 54 - }, - "Value": "fragB" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPaths.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPaths.snap index edcfef61526..85c0903530c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPaths.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPaths.snap @@ -22,27 +22,7 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 236, - "End": 246, - "Line": 9, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 239, - "End": 246, - "Line": 9, - "Column": 44 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -67,26 +47,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 287, - "End": 297, - "Line": 10, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 290, - "End": 297, - "Line": 10, - "Column": 44 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPathsAltTraverseOrder.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPathsAltTraverseOrder.snap index 5563c4c39dd..17d530d74d1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPathsAltTraverseOrder.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDeeplyTwoPathsAltTraverseOrder.snap @@ -22,27 +22,7 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 277, - "End": 290, - "Line": 10, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 280, - "End": 290, - "Line": 10, - "Column": 44 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The graph of fragment spreads must not form any cycles including spreading itself. Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.", @@ -67,26 +47,6 @@ "fragment": "fragC", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 226, - "End": 236, - "Line": 9, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 236, - "Line": 9, - "Column": 44 - }, - "Value": "fragC" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectly.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectly.snap index c4c7b15f458..fff8d110043 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectly.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectly.snap @@ -22,26 +22,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 175, - "End": 185, - "Line": 8, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 178, - "End": 185, - "Line": 8, - "Column": 44 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectlyWithinInlineFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectlyWithinInlineFragment.snap index baba372888e..a359f1d211f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectlyWithinInlineFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfDirectlyWithinInlineFragment.snap @@ -27,26 +27,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 291, - "End": 321, - "Line": 12, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 294, - "End": 321, - "Line": 12, - "Column": 24 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectly.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectly.snap index 016029ef781..7530323dd91 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectly.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectly.snap @@ -22,26 +22,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 226, - "End": 236, - "Line": 9, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 236, - "Line": 9, - "Column": 44 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectlyWithinInlineFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectlyWithinInlineFragment.snap index 660965f424f..b7b5c67fb0c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectlyWithinInlineFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.NoSpreadingItselfIndirectlyWithinInlineFragment.snap @@ -27,26 +27,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 458, - "End": 488, - "Line": 18, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 461, - "End": 488, - "Line": 18, - "Column": 28 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.SpeardingRecursivelyWithinFieldFails.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.SpeardingRecursivelyWithinFieldFails.snap index d925d22a34e..a6a3af80263 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.SpeardingRecursivelyWithinFieldFails.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentSpreadsMustNotFormCyclesRuleTests.SpeardingRecursivelyWithinFieldFails.snap @@ -27,26 +27,6 @@ "fragment": "fragA", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spreads-must-not-form-cycles" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 194, - "End": 204, - "Line": 8, - "Column": 55 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 197, - "End": 204, - "Line": 8, - "Column": 58 - }, - "Value": "fragA" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsMustBeUsedRuleTests.UnusedFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsMustBeUsedRuleTests.UnusedFragment.snap index 8186c944355..48c980bc302 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsMustBeUsedRuleTests.UnusedFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsMustBeUsedRuleTests.UnusedFragment.snap @@ -13,81 +13,6 @@ "fragment": "nameFragment", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 42, - "End": 47, - "Line": 2, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 42, - "End": 47, - "Line": 2, - "Column": 42 - }, - "Value": "Dog" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 46, - "End": 118, - "Line": 2, - "Column": 46 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 77, - "End": 99, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 77, - "End": 99, - "Line": 3, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 17, - "End": 118, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 26, - "End": 41, - "Line": 2, - "Column": 26 - }, - "Value": "nameFragment" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.Fragment_On_Scalar_Is_Invalid.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.Fragment_On_Scalar_Is_Invalid.snap index 785e46670c0..7a58a725b7d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.Fragment_On_Scalar_Is_Invalid.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.Fragment_On_Scalar_Is_Invalid.snap @@ -23,81 +23,6 @@ "fragment": "fragOnScalar", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-On-Composite-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 167, - "End": 172, - "Line": 8, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 167, - "End": 172, - "Line": 8, - "Column": 42 - }, - "Value": "Int" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 171, - "End": 233, - "Line": 8, - "Column": 46 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 193, - "End": 220, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 193, - "End": 220, - "Line": 9, - "Column": 21 - }, - "Value": "something" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 142, - "End": 233, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 151, - "End": 166, - "Line": 8, - "Column": 26 - }, - "Value": "fragOnScalar" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.InlineFragment_On_Scalar_Is_Invalid.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.InlineFragment_On_Scalar_Is_Invalid.snap index d8de602f54a..06660b998f8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.InlineFragment_On_Scalar_Is_Invalid.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/FragmentsOnCompositeTypesRuleTests.InlineFragment_On_Scalar_Is_Invalid.snap @@ -22,70 +22,6 @@ "typeCondition": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-On-Composite-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "InlineFragment", - "Location": { - "Start": 205, - "End": 299, - "Line": 9, - "Column": 21 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 212, - "End": 221, - "Line": 9, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 212, - "End": 221, - "Line": 9, - "Column": 28 - }, - "Value": "Boolean" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 220, - "End": 299, - "Line": 9, - "Column": 36 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 246, - "End": 281, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 246, - "End": 281, - "Line": 10, - "Column": 25 - }, - "Value": "somethingElse" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidInputObjectFieldsExist.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidInputObjectFieldsExist.snap index cd8a285b93d..768dcf461f6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidInputObjectFieldsExist.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidInputObjectFieldsExist.snap @@ -22,36 +22,6 @@ "field": "favoriteCookieFlavor", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 58, - "End": 89, - "Line": 3, - "Column": 40 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 58, - "End": 79, - "Line": 3, - "Column": 40 - }, - "Value": "favoriteCookieFlavor" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 80, - "End": 89, - "Line": 3, - "Column": 62 - }, - "Value": "Bacon", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidNestedInputObjectFieldsExist.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidNestedInputObjectFieldsExist.snap index 0393615d411..9f9b3d7164b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidNestedInputObjectFieldsExist.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldNamesRuleTests.InvalidNestedInputObjectFieldsExist.snap @@ -22,36 +22,6 @@ "field": "favoriteCookieFlavor", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 67, - "End": 98, - "Line": 3, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 67, - "End": 88, - "Line": 3, - "Column": 49 - }, - "Value": "favoriteCookieFlavor" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 89, - "End": 98, - "Line": 3, - "Column": 71 - }, - "Value": "Bacon", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.DuplicateInputObjectFields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.DuplicateInputObjectFields.snap index 55029ce83a1..0c9c2687579 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.DuplicateInputObjectFields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.DuplicateInputObjectFields.snap @@ -27,36 +27,6 @@ "field": "f1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 223, - "End": 236, - "Line": 7, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 223, - "End": 226, - "Line": 7, - "Column": 29 - }, - "Value": "f1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 227, - "End": 236, - "Line": 7, - "Column": 33 - }, - "Value": "value", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.ManyDuplicateInputObjectFields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.ManyDuplicateInputObjectFields.snap index 31780884a44..729d0d7e04f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.ManyDuplicateInputObjectFields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.ManyDuplicateInputObjectFields.snap @@ -27,37 +27,7 @@ "field": "f1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 223, - "End": 266, - "Line": 7, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 223, - "End": 226, - "Line": 7, - "Column": 29 - }, - "Value": "f1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 227, - "End": 266, - "Line": 7, - "Column": 33 - }, - "Value": "value", - "Block": false - } - } + "Exception": null }, { "Message": "There can be only one input field named `f1`.", @@ -87,36 +57,6 @@ "field": "f1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 264, - "End": 277, - "Line": 8, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 264, - "End": 267, - "Line": 8, - "Column": 29 - }, - "Value": "f1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 268, - "End": 277, - "Line": 8, - "Column": 33 - }, - "Value": "value", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NameFieldIsAmbiguous.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NameFieldIsAmbiguous.snap index 110e8bdf25c..4954a5b2021 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NameFieldIsAmbiguous.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NameFieldIsAmbiguous.snap @@ -22,36 +22,6 @@ "field": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 69, - "End": 80, - "Line": 3, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 74, - "Line": 3, - "Column": 51 - }, - "Value": "name" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 75, - "End": 80, - "Line": 3, - "Column": 57 - }, - "Value": "B", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NestedDuplicateInputObjectFields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NestedDuplicateInputObjectFields.snap index 84e058a7a27..a2491e39bb9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NestedDuplicateInputObjectFields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectFieldUniquenessRuleTests.NestedDuplicateInputObjectFields.snap @@ -27,36 +27,6 @@ "field": "f2", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 318, - "End": 331, - "Line": 9, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 318, - "End": 321, - "Line": 9, - "Column": 33 - }, - "Value": "f2" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 322, - "End": 331, - "Line": 9, - "Column": 37 - }, - "Value": "value", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.BadNullToNonNullField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.BadNullToNonNullField.snap index 936edb0dc7d..3c84abc0172 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.BadNullToNonNullField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.BadNullToNonNullField.snap @@ -27,35 +27,6 @@ "field": "nonNullField", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 182, - "End": 227, - "Line": 6, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 182, - "End": 195, - "Line": 6, - "Column": 29 - }, - "Value": "nonNullField" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 196, - "End": 227, - "Line": 6, - "Column": 43 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.NestedRequiredFieldIsNotSet.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.NestedRequiredFieldIsNotSet.snap index fbdfb841434..3a2cdedbf41 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.NestedRequiredFieldIsNotSet.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.NestedRequiredFieldIsNotSet.snap @@ -22,47 +22,6 @@ "field": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 78, - "End": 96, - "Line": 3, - "Column": 60 - }, - "Fields": [ - { - "Kind": "ObjectField", - "Location": { - "Start": 80, - "End": 94, - "Line": 3, - "Column": 62 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 80, - "End": 86, - "Line": 3, - "Column": 62 - }, - "Value": "owner" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 87, - "End": 94, - "Line": 3, - "Column": 69 - }, - "Value": "bar", - "Block": false - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNotSet.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNotSet.snap index 7646f7da679..c459b276e93 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNotSet.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNotSet.snap @@ -22,16 +22,6 @@ "field": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 57, - "End": 61, - "Line": 3, - "Column": 39 - }, - "Fields": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNull.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNull.snap index a2ae790f80b..5e0d8509c56 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNull.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/InputObjectRequiredFieldsRuleTests.RequiredFieldIsNull.snap @@ -22,35 +22,6 @@ "field": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 59, - "End": 71, - "Line": 3, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 59, - "End": 64, - "Line": 3, - "Column": 41 - }, - "Value": "name" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 65, - "End": 71, - "Line": 3, - "Column": 47 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field.snap index 32c2f7e72bf..feb6f685f92 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field.snap @@ -22,30 +22,6 @@ }, "code": "HC0046" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 39, - "End": 65, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 65, - "Line": 3, - "Column": 21 - }, - "Value": "__schema" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_Message.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_Message.snap index 936f6945e2b..eccb208ea09 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_Message.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_Message.snap @@ -22,30 +22,6 @@ }, "code": "HC0046" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 39, - "End": 65, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 65, - "Line": 3, - "Column": 21 - }, - "Value": "__schema" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_MessageFactory.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_MessageFactory.snap index 7d48ba17b14..1216159f4aa 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_MessageFactory.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Schema_Field_Custom_MessageFactory.snap @@ -22,30 +22,6 @@ }, "code": "HC0046" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 39, - "End": 65, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 65, - "Line": 3, - "Column": 21 - }, - "Value": "__schema" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Type_Field.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Type_Field.snap index 72cea698d60..5b9ef2cafe5 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Type_Field.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/IntrospectionRuleTests.IntrospectionNotAllowed_Type_Field.snap @@ -22,61 +22,6 @@ }, "code": "HC0046" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 46, - "End": 58, - "Line": 3, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 46, - "End": 51, - "Line": 3, - "Column": 28 - }, - "Value": "name" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 52, - "End": 58, - "Line": 3, - "Column": 34 - }, - "Value": "foo", - "Block": false - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 39, - "End": 76, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 46, - "Line": 3, - "Column": 21 - }, - "Value": "__type" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/KnownFragmentNamesTests.DuplicateFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/KnownFragmentNamesTests.DuplicateFragments.snap index d7ca27fa16b..0b3a383b69d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/KnownFragmentNamesTests.DuplicateFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/KnownFragmentNamesTests.DuplicateFragments.snap @@ -22,27 +22,7 @@ "fragment": "UnknownFragment1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-target-defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 78, - "End": 125, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 81, - "End": 125, - "Line": 4, - "Column": 28 - }, - "Value": "UnknownFragment1" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The specified fragment `UnknownFragment2` does not exist.", @@ -67,27 +47,7 @@ "fragment": "UnknownFragment2", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-target-defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 165, - "End": 210, - "Line": 6, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 168, - "End": 210, - "Line": 6, - "Column": 32 - }, - "Value": "UnknownFragment2" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The specified fragment `HumanFields` is not used within the current document.", @@ -103,101 +63,6 @@ "fragment": "HumanFields", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 291, - "End": 298, - "Line": 10, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 291, - "End": 298, - "Line": 10, - "Column": 41 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 297, - "End": 394, - "Line": 10, - "Column": 47 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 319, - "End": 347, - "Line": 11, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 319, - "End": 347, - "Line": 11, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - }, - { - "Kind": "FragmentSpread", - "Location": { - "Start": 344, - "End": 381, - "Line": 12, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 347, - "End": 381, - "Line": 12, - "Column": 24 - }, - "Value": "UnknownFragment3" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 267, - "End": 394, - "Line": 10, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 276, - "End": 290, - "Line": 10, - "Column": 26 - }, - "Value": "HumanFields" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFields.snap index 79d9da8477f..5b2bf1840f4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFields.snap @@ -16,30 +16,6 @@ "responseName": "pet", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 84, - "End": 105, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 105, - "Line": 3, - "Column": 21 - }, - "Value": "pet" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFieldsEmptySelection.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFieldsEmptySelection.snap index a2e9006ff3f..5b2bf1840f4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFieldsEmptySelection.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnInterfaceWithoutSubFieldsEmptySelection.snap @@ -16,39 +16,6 @@ "responseName": "pet", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 88, - "End": 108, - "Line": 3, - "Column": 25 - }, - "Selections": [] - }, - "Location": { - "Start": 84, - "End": 108, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 89, - "Line": 3, - "Column": 21 - }, - "Value": "pet" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFields.snap index 45ebd238bf8..61b5716e23f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFields.snap @@ -16,30 +16,6 @@ "responseName": "human", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 81, - "End": 104, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 81, - "End": 104, - "Line": 3, - "Column": 21 - }, - "Value": "human" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFieldsEmptySelection.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFieldsEmptySelection.snap index 616dc05347e..61b5716e23f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFieldsEmptySelection.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnObjectWithoutSubFieldsEmptySelection.snap @@ -16,39 +16,6 @@ "responseName": "human", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 87, - "End": 107, - "Line": 3, - "Column": 27 - }, - "Selections": [] - }, - "Location": { - "Start": 81, - "End": 107, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 81, - "End": 88, - "Line": 3, - "Column": 21 - }, - "Value": "human" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFields.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFields.snap index 988f6bbf142..ddf92acfee1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFields.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFields.snap @@ -16,30 +16,6 @@ "responseName": "catOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 80, - "End": 106, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 80, - "End": 106, - "Line": 3, - "Column": 21 - }, - "Value": "catOrDog" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFieldsEmptySelection.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFieldsEmptySelection.snap index bc64f9427d4..ddf92acfee1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFieldsEmptySelection.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.DirectQueryOnUnionWithoutSubFieldsEmptySelection.snap @@ -16,39 +16,6 @@ "responseName": "catOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 89, - "End": 109, - "Line": 3, - "Column": 30 - }, - "Selections": [] - }, - "Location": { - "Start": 80, - "End": 109, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 80, - "End": 90, - "Line": 3, - "Column": 21 - }, - "Value": "catOrDog" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyMutationType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyMutationType.snap index 4e3eef56edf..e85b82f04b1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyMutationType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyMutationType.snap @@ -14,29 +14,6 @@ "type": "Mutation", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 42, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Mutation", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 26, - "End": 42, - "Line": 2, - "Column": 26 - }, - "Selections": [] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedMutationType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedMutationType.snap index d50c21df19c..9fb5b635f49 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedMutationType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedMutationType.snap @@ -14,38 +14,6 @@ "type": "Mutation", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 46, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 26, - "End": 31, - "Line": 2, - "Column": 26 - }, - "Value": "Foo" - }, - "Operation": "Mutation", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 30, - "End": 46, - "Line": 2, - "Column": 30 - }, - "Selections": [] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedQueryType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedQueryType.snap index d79998a038f..b8d261ef164 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedQueryType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedQueryType.snap @@ -14,38 +14,6 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 43, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 27, - "End": 43, - "Line": 2, - "Column": 27 - }, - "Selections": [] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedSubscriptionType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedSubscriptionType.snap index 7ec71137058..437390ee157 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedSubscriptionType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyNamedSubscriptionType.snap @@ -14,38 +14,6 @@ "type": "Subscription", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 50, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "Foo" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 50, - "Line": 2, - "Column": 34 - }, - "Selections": [] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyQueryType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyQueryType.snap index 3fd07039797..0bcb9569bdd 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyQueryType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptyQueryType.snap @@ -14,29 +14,6 @@ "type": "Query", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 33, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 17, - "End": 33, - "Line": 2, - "Column": 17 - }, - "Selections": [] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptySubscriptionType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptySubscriptionType.snap index 645107c5b5e..c423e4dbe43 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptySubscriptionType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.EmptySubscriptionType.snap @@ -14,29 +14,6 @@ "type": "Subscription", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 46, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 30, - "End": 46, - "Line": 2, - "Column": 30 - }, - "Selections": [] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelection.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelection.snap index 276ac885bbc..25fe5023c4b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelection.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelection.snap @@ -25,30 +25,6 @@ "responseName": "pets", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 47, - "End": 53, - "Line": 3, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 47, - "End": 53, - "Line": 3, - "Column": 29 - }, - "Value": "pets" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelectionEmptySelection.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelectionEmptySelection.snap index f23127837e3..25fe5023c4b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelectionEmptySelection.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.InterfaceTypeMissingSelectionEmptySelection.snap @@ -25,39 +25,6 @@ "responseName": "pets", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 52, - "End": 56, - "Line": 3, - "Column": 34 - }, - "Selections": [] - }, - "Location": { - "Start": 47, - "End": 56, - "Line": 3, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 47, - "End": 53, - "Line": 3, - "Column": 29 - }, - "Value": "pets" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnBoolean.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnBoolean.snap index ca29cc0761b..cd27fc2f644 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnBoolean.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnBoolean.snap @@ -25,64 +25,6 @@ "responseName": "barks", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 75, - "End": 162, - "Line": 4, - "Column": 31 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 105, - "End": 140, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 105, - "End": 140, - "Line": 5, - "Column": 29 - }, - "Value": "sinceWhen" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 69, - "End": 162, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 76, - "Line": 4, - "Column": 25 - }, - "Value": "barks" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnEnum.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnEnum.snap index cbe978399a1..da76d554150 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnEnum.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedOnEnum.snap @@ -25,64 +25,6 @@ "responseName": "furColor", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 124, - "End": 223, - "Line": 5, - "Column": 38 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 158, - "End": 197, - "Line": 6, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 158, - "End": 197, - "Line": 6, - "Column": 33 - }, - "Value": "inHexDec" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 115, - "End": 223, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 115, - "End": 125, - "Line": 5, - "Column": 29 - }, - "Value": "furColor" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithArgs.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithArgs.snap index d94e55cf136..49211dd5c60 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithArgs.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithArgs.snap @@ -25,94 +25,6 @@ "responseName": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 85, - "End": 101, - "Line": 4, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 96, - "Line": 4, - "Column": 41 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 97, - "End": 101, - "Line": 4, - "Column": 53 - }, - "Value": "SIT" - } - } - ], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 102, - "End": 137, - "Line": 4, - "Column": 58 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 104, - "End": 115, - "Line": 4, - "Column": 60 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 104, - "End": 115, - "Line": 4, - "Column": 60 - }, - "Value": "sinceWhen" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 69, - "End": 137, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 85, - "Line": 4, - "Column": 25 - }, - "Value": "doesKnowCommand" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectives.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectives.snap index 184f2f54e97..c5e65904a2d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectives.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectives.snap @@ -25,115 +25,6 @@ "responseName": "name", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 94, - "End": 135, - "Line": 4, - "Column": 49 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 96, - "End": 113, - "Line": 4, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 96, - "End": 113, - "Line": 4, - "Column": 51 - }, - "Value": "isAlsoHumanName" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 70, - "End": 135, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 70, - "End": 76, - "Line": 4, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 75, - "End": 95, - "Line": 4, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 76, - "End": 84, - "Line": 4, - "Column": 31 - }, - "Value": "include" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 84, - "End": 93, - "Line": 4, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 87, - "Line": 4, - "Column": 39 - }, - "Value": "if" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 88, - "End": 93, - "Line": 4, - "Column": 43 - }, - "Value": true - } - } - ] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectivesAndArgs.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectivesAndArgs.snap index 6b84616e30a..49211dd5c60 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectivesAndArgs.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionNotAllowedWithDirectivesAndArgs.snap @@ -25,145 +25,6 @@ "responseName": "doesKnowCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 86, - "End": 102, - "Line": 4, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 86, - "End": 97, - "Line": 4, - "Column": 41 - }, - "Value": "dogCommand" - }, - "Value": { - "Kind": "EnumValue", - "Location": { - "Start": 98, - "End": 102, - "Line": 4, - "Column": 53 - }, - "Value": "SIT" - } - } - ], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 122, - "End": 157, - "Line": 4, - "Column": 77 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 124, - "End": 135, - "Line": 4, - "Column": 79 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 124, - "End": 135, - "Line": 4, - "Column": 79 - }, - "Value": "sinceWhen" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 70, - "End": 157, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 70, - "End": 86, - "Line": 4, - "Column": 25 - }, - "Value": "doesKnowCommand" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 103, - "End": 123, - "Line": 4, - "Column": 58 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 104, - "End": 112, - "Line": 4, - "Column": 59 - }, - "Value": "include" - }, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 112, - "End": 121, - "Line": 4, - "Column": 67 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 112, - "End": 115, - "Line": 4, - "Column": 67 - }, - "Value": "if" - }, - "Value": { - "Kind": "BooleanValue", - "Location": { - "Start": 116, - "End": 121, - "Line": 4, - "Column": 71 - }, - "Value": true - } - } - ] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionsNotAllowedOnInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionsNotAllowedOnInt.snap index e1633d4d65e..a21725f8486 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionsNotAllowedOnInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LeafFieldSelectionsRuleTests.ScalarSelectionsNotAllowedOnInt.snap @@ -25,64 +25,6 @@ "responseName": "barkVolume", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 80, - "End": 167, - "Line": 4, - "Column": 36 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 110, - "End": 145, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 110, - "End": 145, - "Line": 5, - "Column": 29 - }, - "Value": "sinceWhen" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 69, - "End": 167, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 81, - "Line": 4, - "Column": 25 - }, - "Value": "barkVolume" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithAMutation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithAMutation.snap index dd226095c97..49407e432af 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithAMutation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithAMutation.snap @@ -13,88 +13,6 @@ "operations": 2, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 138, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 17, - "End": 138, - "Line": 2, - "Column": 17 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 43, - "End": 113, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 39, - "End": 113, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 44, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithASubscription.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithASubscription.snap index fc23a673332..49407e432af 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithASubscription.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.AnonymousOperationWithASubscription.snap @@ -13,88 +13,6 @@ "operations": 2, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 142, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 17, - "End": 142, - "Line": 2, - "Column": 17 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 43, - "End": 113, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 39, - "End": 113, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 44, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithOneAnonymousAndOneNamedOperation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithOneAnonymousAndOneNamedOperation.snap index f5bd0cff93e..49407e432af 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithOneAnonymousAndOneNamedOperation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithOneAnonymousAndOneNamedOperation.snap @@ -13,88 +13,6 @@ "operations": 2, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 136, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 17, - "End": 136, - "Line": 2, - "Column": 17 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 43, - "End": 113, - "Line": 3, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 95, - "Line": 4, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 39, - "End": 113, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 39, - "End": 44, - "Line": 3, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithTwoAnonymousOperations.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithTwoAnonymousOperations.snap index 364fca38042..4332cb7fd3f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithTwoAnonymousOperations.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/LoneAnonymousOperationRuleTests.QueryWithTwoAnonymousOperations.snap @@ -13,88 +13,6 @@ "operations": 2, "specifiedBy": "https://spec.graphql.org/October2021/#sec-Lone-Anonymous-Operation" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 131, - "End": 240, - "Line": 8, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 131, - "End": 240, - "Line": 8, - "Column": 17 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 157, - "End": 227, - "Line": 9, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 183, - "End": 209, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 183, - "End": 209, - "Line": 10, - "Column": 25 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 153, - "End": 227, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 153, - "End": 158, - "Line": 9, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_IntrospectionQuery_Exceeds_Allowed_Depth_Error.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_IntrospectionQuery_Exceeds_Allowed_Depth_Error.snap index 1c41fe04dba..d68d9c1392f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_IntrospectionQuery_Exceeds_Allowed_Depth_Error.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_IntrospectionQuery_Exceeds_Allowed_Depth_Error.snap @@ -13,460 +13,6 @@ "allowedExecutionDepth": 3, "detectedExecutionDepth": 8 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 942, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 942, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 54, - "End": 942, - "Line": 3, - "Column": 30 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 86, - "End": 924, - "Line": 4, - "Column": 31 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 123, - "End": 902, - "Line": 5, - "Column": 36 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 162, - "End": 876, - "Line": 6, - "Column": 38 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 200, - "End": 245, - "Line": 7, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 200, - "End": 245, - "Line": 7, - "Column": 37 - }, - "Value": "kind" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 241, - "End": 288, - "Line": 8, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 241, - "End": 288, - "Line": 8, - "Column": 37 - }, - "Value": "name" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 289, - "End": 846, - "Line": 9, - "Column": 44 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 331, - "End": 380, - "Line": 10, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 331, - "End": 380, - "Line": 10, - "Column": 41 - }, - "Value": "kind" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 376, - "End": 427, - "Line": 11, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 376, - "End": 427, - "Line": 11, - "Column": 41 - }, - "Value": "name" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 428, - "End": 812, - "Line": 12, - "Column": 48 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 474, - "End": 527, - "Line": 13, - "Column": 45 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 474, - "End": 527, - "Line": 13, - "Column": 45 - }, - "Value": "kind" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 523, - "End": 578, - "Line": 14, - "Column": 45 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 523, - "End": 578, - "Line": 14, - "Column": 45 - }, - "Value": "name" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 579, - "End": 774, - "Line": 15, - "Column": 52 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 629, - "End": 686, - "Line": 16, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 629, - "End": 686, - "Line": 16, - "Column": 49 - }, - "Value": "kind" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 682, - "End": 732, - "Line": 17, - "Column": 49 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 682, - "End": 732, - "Line": 17, - "Column": 49 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 572, - "End": 774, - "Line": 15, - "Column": 45 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 572, - "End": 580, - "Line": 15, - "Column": 45 - }, - "Value": "ofType" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 421, - "End": 812, - "Line": 12, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 421, - "End": 429, - "Line": 12, - "Column": 41 - }, - "Value": "ofType" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 282, - "End": 846, - "Line": 9, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 282, - "End": 290, - "Line": 9, - "Column": 37 - }, - "Value": "ofType" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 157, - "End": 876, - "Line": 6, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 157, - "End": 163, - "Line": 6, - "Column": 33 - }, - "Value": "type" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 116, - "End": 902, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 116, - "End": 124, - "Line": 5, - "Column": 29 - }, - "Value": "fields" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 80, - "End": 924, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 80, - "End": 87, - "Line": 4, - "Column": 25 - }, - "Value": "types" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 45, - "End": 942, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 55, - "Line": 3, - "Column": 21 - }, - "Value": "__schema" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap index 78d1461ac7d..26f48143e7a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap @@ -13,84 +13,6 @@ "allowedExecutionDepth": 3, "detectedExecutionDepth": 4 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 156, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 156, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 54, - "End": 130, - "Line": 3, - "Column": 30 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 80, - "End": 112, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 112, - "Line": 4, - "Column": 29 - }, - "Value": "level2" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 45, - "End": 130, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 55, - "Line": 3, - "Column": 21 - }, - "Value": "level1_1" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap index 8255ec66f63..26f48143e7a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap @@ -13,236 +13,6 @@ "allowedExecutionDepth": 3, "detectedExecutionDepth": 4 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 493, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 493, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 54, - "End": 480, - "Line": 3, - "Column": 30 - }, - "Selections": [ - { - "Kind": "InlineFragment", - "Location": { - "Start": 80, - "End": 462, - "Line": 4, - "Column": 25 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 87, - "End": 95, - "Line": 4, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 87, - "End": 95, - "Line": 4, - "Column": 32 - }, - "Value": "Level2" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 94, - "End": 462, - "Line": 4, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 133, - "End": 440, - "Line": 5, - "Column": 38 - }, - "Selections": [ - { - "Kind": "InlineFragment", - "Location": { - "Start": 167, - "End": 414, - "Line": 6, - "Column": 33 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 174, - "End": 182, - "Line": 6, - "Column": 40 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 174, - "End": 182, - "Line": 6, - "Column": 40 - }, - "Value": "Level3" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 181, - "End": 414, - "Line": 6, - "Column": 47 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 264, - "End": 384, - "Line": 8, - "Column": 37 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 306, - "End": 350, - "Line": 9, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 306, - "End": 350, - "Line": 9, - "Column": 41 - }, - "Value": "level4" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 219, - "End": 384, - "Line": 7, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 219, - "End": 265, - "Line": 7, - "Column": 37 - }, - "Value": "level3_1" - }, - "Directives": [] - } - ] - } - } - ] - }, - "Location": { - "Start": 124, - "End": 440, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 124, - "End": 134, - "Line": 5, - "Column": 29 - }, - "Value": "level2_1" - }, - "Directives": [] - } - ] - } - } - ] - }, - "Location": { - "Start": 45, - "End": 480, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 55, - "Line": 3, - "Column": 21 - }, - "Value": "level1_1" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap index 3a16c842e6a..26f48143e7a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTests.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap @@ -13,296 +13,6 @@ "allowedExecutionDepth": 3, "detectedExecutionDepth": 4 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 534, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 534, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 54, - "End": 275, - "Line": 3, - "Column": 30 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 89, - "End": 246, - "Line": 4, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 128, - "End": 224, - "Line": 5, - "Column": 38 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 162, - "End": 198, - "Line": 6, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 162, - "End": 198, - "Line": 6, - "Column": 33 - }, - "Value": "level4" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 119, - "End": 224, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 119, - "End": 129, - "Line": 5, - "Column": 29 - }, - "Value": "level3_1" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 80, - "End": 246, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 80, - "End": 90, - "Line": 4, - "Column": 25 - }, - "Value": "level2_1" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 45, - "End": 275, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 55, - "Line": 3, - "Column": 21 - }, - "Value": "level1_1" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 267, - "End": 304, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 267, - "End": 304, - "Line": 10, - "Column": 21 - }, - "Value": "level1_2" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 325, - "End": 521, - "Line": 12, - "Column": 21 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 351, - "End": 392, - "Line": 13, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 351, - "End": 392, - "Line": 13, - "Column": 25 - }, - "Value": "level2_2" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 417, - "End": 503, - "Line": 15, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 447, - "End": 481, - "Line": 16, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 447, - "End": 481, - "Line": 16, - "Column": 29 - }, - "Value": "level3_2" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 384, - "End": 503, - "Line": 14, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 384, - "End": 418, - "Line": 14, - "Column": 25 - }, - "Value": "level2_3" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 296, - "End": 521, - "Line": 11, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 296, - "End": 326, - "Line": 11, - "Column": 21 - }, - "Value": "level1_2" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap index 78d1461ac7d..26f48143e7a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsViaFragments_MaxDepthReached.snap @@ -13,84 +13,6 @@ "allowedExecutionDepth": 3, "detectedExecutionDepth": 4 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 156, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 156, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 54, - "End": 130, - "Line": 3, - "Column": 30 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 80, - "End": 112, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 84, - "End": 112, - "Line": 4, - "Column": 29 - }, - "Value": "level2" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 45, - "End": 130, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 55, - "Line": 3, - "Column": 21 - }, - "Value": "level1_1" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap index 8255ec66f63..26f48143e7a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4LevelsWithInlineFragment_MaxDepthReached.snap @@ -13,236 +13,6 @@ "allowedExecutionDepth": 3, "detectedExecutionDepth": 4 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 493, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 493, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 54, - "End": 480, - "Line": 3, - "Column": 30 - }, - "Selections": [ - { - "Kind": "InlineFragment", - "Location": { - "Start": 80, - "End": 462, - "Line": 4, - "Column": 25 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 87, - "End": 95, - "Line": 4, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 87, - "End": 95, - "Line": 4, - "Column": 32 - }, - "Value": "Level2" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 94, - "End": 462, - "Line": 4, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 133, - "End": 440, - "Line": 5, - "Column": 38 - }, - "Selections": [ - { - "Kind": "InlineFragment", - "Location": { - "Start": 167, - "End": 414, - "Line": 6, - "Column": 33 - }, - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 174, - "End": 182, - "Line": 6, - "Column": 40 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 174, - "End": 182, - "Line": 6, - "Column": 40 - }, - "Value": "Level3" - } - }, - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 181, - "End": 414, - "Line": 6, - "Column": 47 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 264, - "End": 384, - "Line": 8, - "Column": 37 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 306, - "End": 350, - "Line": 9, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 306, - "End": 350, - "Line": 9, - "Column": 41 - }, - "Value": "level4" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 219, - "End": 384, - "Line": 7, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 219, - "End": 265, - "Line": 7, - "Column": 37 - }, - "Value": "level3_1" - }, - "Directives": [] - } - ] - } - } - ] - }, - "Location": { - "Start": 124, - "End": 440, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 124, - "End": 134, - "Line": 5, - "Column": 29 - }, - "Value": "level2_1" - }, - "Directives": [] - } - ] - } - } - ] - }, - "Location": { - "Start": 45, - "End": 480, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 55, - "Line": 3, - "Column": 21 - }, - "Value": "level1_1" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap index 3a16c842e6a..26f48143e7a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/MaxDepthRuleTestsSkipIntrospection.MaxDepth3_QueryWith4Levels_MaxDepthReached.snap @@ -13,296 +13,6 @@ "allowedExecutionDepth": 3, "detectedExecutionDepth": 4 }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 534, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 23, - "End": 534, - "Line": 2, - "Column": 23 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 54, - "End": 275, - "Line": 3, - "Column": 30 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 89, - "End": 246, - "Line": 4, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 128, - "End": 224, - "Line": 5, - "Column": 38 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 162, - "End": 198, - "Line": 6, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 162, - "End": 198, - "Line": 6, - "Column": 33 - }, - "Value": "level4" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 119, - "End": 224, - "Line": 5, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 119, - "End": 129, - "Line": 5, - "Column": 29 - }, - "Value": "level3_1" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 80, - "End": 246, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 80, - "End": 90, - "Line": 4, - "Column": 25 - }, - "Value": "level2_1" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 45, - "End": 275, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 45, - "End": 55, - "Line": 3, - "Column": 21 - }, - "Value": "level1_1" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 267, - "End": 304, - "Line": 10, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 267, - "End": 304, - "Line": 10, - "Column": 21 - }, - "Value": "level1_2" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 325, - "End": 521, - "Line": 12, - "Column": 21 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 351, - "End": 392, - "Line": 13, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 351, - "End": 392, - "Line": 13, - "Column": 25 - }, - "Value": "level2_2" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 417, - "End": 503, - "Line": 15, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 447, - "End": 481, - "Line": 16, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 447, - "End": 481, - "Line": 16, - "Column": 29 - }, - "Value": "level3_2" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 384, - "End": 503, - "Line": 14, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 384, - "End": 418, - "Line": 14, - "Column": 25 - }, - "Value": "level2_3" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 296, - "End": 521, - "Line": 11, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 296, - "End": 326, - "Line": 11, - "Column": 21 - }, - "Value": "level1_2" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleUndefinedVariablesProduceMultipleErrors.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleUndefinedVariablesProduceMultipleErrors.snap index 00af95c97fc..bda9c7b5e2b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleUndefinedVariablesProduceMultipleErrors.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleUndefinedVariablesProduceMultipleErrors.snap @@ -12,110 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 127, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 39, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 40, - "End": 127, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 62, - "End": 88, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 65, - "End": 88, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: a.", @@ -130,110 +27,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 127, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 39, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 40, - "End": 127, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 62, - "End": 88, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 65, - "End": 88, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not used: a.", @@ -248,110 +42,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 122, - "End": 234, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 128, - "End": 132, - "Line": 6, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 132, - "End": 143, - "Line": 6, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 132, - "End": 135, - "Line": 6, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 133, - "End": 135, - "Line": 6, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 144, - "End": 234, - "Line": 6, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 166, - "End": 192, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 169, - "End": 192, - "Line": 7, - "Column": 24 - }, - "Value": "FragB" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: b.", @@ -366,109 +57,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 122, - "End": 234, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 128, - "End": 132, - "Line": 6, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 132, - "End": 143, - "Line": 6, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 132, - "End": 135, - "Line": 6, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 133, - "End": 135, - "Line": 6, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 144, - "End": 234, - "Line": 6, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 166, - "End": 192, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 169, - "End": 192, - "Line": 7, - "Column": 24 - }, - "Value": "FragB" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesInFragmentsNotDefined.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesInFragmentsNotDefined.snap index 0b9ba41393f..263ee526947 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesInFragmentsNotDefined.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesInFragmentsNotDefined.snap @@ -12,109 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 130, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 39, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 40, - "End": 130, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 62, - "End": 88, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 65, - "End": 88, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesNotDefined.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesNotDefined.snap index eb0536a4be5..263ee526947 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesNotDefined.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.MultipleVariablesNotDefined.snap @@ -12,228 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 118, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 38, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 39, - "End": 118, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 67, - "End": 75, - "Line": 3, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 67, - "End": 69, - "Line": 3, - "Column": 27 - }, - "Value": "a" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 70, - "End": 75, - "Line": 3, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 71, - "End": 75, - "Line": 3, - "Column": 31 - }, - "Value": "a" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 74, - "End": 82, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 74, - "End": 76, - "Line": 3, - "Column": 34 - }, - "Value": "b" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 77, - "End": 82, - "Line": 3, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 78, - "End": 82, - "Line": 3, - "Column": 38 - }, - "Value": "b" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 81, - "End": 87, - "Line": 3, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 81, - "End": 83, - "Line": 3, - "Column": 41 - }, - "Value": "c" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 84, - "End": 87, - "Line": 3, - "Column": 44 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 87, - "Line": 3, - "Column": 45 - }, - "Value": "c" - } - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 61, - "End": 105, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 61, - "End": 67, - "Line": 3, - "Column": 21 - }, - "Value": "field" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.SingleVariableInFragmentNotDefinedByMultipleOperations.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.SingleVariableInFragmentNotDefinedByMultipleOperations.snap index 9cbd162cf19..a85451816bc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.SingleVariableInFragmentNotDefinedByMultipleOperations.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.SingleVariableInFragmentNotDefinedByMultipleOperations.snap @@ -12,110 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 128, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 39, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 40, - "End": 128, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 62, - "End": 89, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 65, - "End": 89, - "Line": 3, - "Column": 24 - }, - "Value": "FragAB" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: b.", @@ -130,109 +27,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 123, - "End": 236, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 129, - "End": 133, - "Line": 6, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 133, - "End": 144, - "Line": 6, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 133, - "End": 136, - "Line": 6, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 134, - "End": 136, - "Line": 6, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 137, - "End": 144, - "Line": 6, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 137, - "End": 144, - "Line": 6, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 145, - "End": 236, - "Line": 6, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 167, - "End": 194, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 170, - "End": 194, - "Line": 7, - "Column": 24 - }, - "Value": "FragAB" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByOperation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByOperation.snap index aa2fdd546b2..2b1df48b6a8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByOperation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByOperation.snap @@ -12,158 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 142, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 41, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 41, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 41, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 40, - "End": 51, - "Line": 2, - "Column": 39 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 40, - "End": 43, - "Line": 2, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 41, - "End": 43, - "Line": 2, - "Column": 40 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 44, - "End": 51, - "Line": 2, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 44, - "End": 51, - "Line": 2, - "Column": 43 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 52, - "End": 142, - "Line": 2, - "Column": 51 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 74, - "End": 100, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 77, - "End": 100, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByUnNamedQuery.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByUnNamedQuery.snap index e4480f2c249..26f8b8eaf6d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByUnNamedQuery.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentNotDefinedByUnNamedQuery.snap @@ -12,50 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 108, - "Line": 2, - "Column": 17 - }, - "Name": null, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 18, - "End": 108, - "Line": 2, - "Column": 17 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 40, - "End": 66, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 66, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentUsedByOtherOperation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentUsedByOtherOperation.snap index 00af95c97fc..bda9c7b5e2b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentUsedByOtherOperation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableInFragmentUsedByOtherOperation.snap @@ -12,110 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 127, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 39, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 40, - "End": 127, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 62, - "End": 88, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 65, - "End": 88, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: a.", @@ -130,110 +27,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 127, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 39, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 40, - "End": 127, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 62, - "End": 88, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 65, - "End": 88, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not used: a.", @@ -248,110 +42,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 122, - "End": 234, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 128, - "End": 132, - "Line": 6, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 132, - "End": 143, - "Line": 6, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 132, - "End": 135, - "Line": 6, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 133, - "End": 135, - "Line": 6, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 144, - "End": 234, - "Line": 6, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 166, - "End": 192, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 169, - "End": 192, - "Line": 7, - "Column": 24 - }, - "Value": "FragB" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: b.", @@ -366,109 +57,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 122, - "End": 234, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 128, - "End": 132, - "Line": 6, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 132, - "End": 143, - "Line": 6, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 132, - "End": 135, - "Line": 6, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 133, - "End": 135, - "Line": 6, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 136, - "End": 143, - "Line": 6, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 144, - "End": 234, - "Line": 6, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 166, - "End": 192, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 169, - "End": 192, - "Line": 7, - "Column": 24 - }, - "Value": "FragB" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefined.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefined.snap index 07a9d6438d4..e6ae842f8b2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefined.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefined.snap @@ -12,364 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 149, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 40, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 39, - "End": 52, - "Line": 2, - "Column": 39 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 39, - "End": 42, - "Line": 2, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 40, - "End": 42, - "Line": 2, - "Column": 40 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 51, - "End": 62, - "Line": 2, - "Column": 51 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 51, - "End": 54, - "Line": 2, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 52, - "End": 54, - "Line": 2, - "Column": 52 - }, - "Value": "c" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 63, - "End": 149, - "Line": 2, - "Column": 63 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 91, - "End": 99, - "Line": 3, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 91, - "End": 93, - "Line": 3, - "Column": 27 - }, - "Value": "a" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 94, - "End": 99, - "Line": 3, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 95, - "End": 99, - "Line": 3, - "Column": 31 - }, - "Value": "a" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 98, - "End": 106, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 98, - "End": 100, - "Line": 3, - "Column": 34 - }, - "Value": "b" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 101, - "End": 106, - "Line": 3, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 102, - "End": 106, - "Line": 3, - "Column": 38 - }, - "Value": "b" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 105, - "End": 113, - "Line": 3, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 105, - "End": 107, - "Line": 3, - "Column": 41 - }, - "Value": "c" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 108, - "End": 113, - "Line": 3, - "Column": 44 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 109, - "End": 113, - "Line": 3, - "Column": 45 - }, - "Value": "c" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 112, - "End": 118, - "Line": 3, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 112, - "End": 114, - "Line": 3, - "Column": 48 - }, - "Value": "d" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 115, - "End": 118, - "Line": 3, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 116, - "End": 118, - "Line": 3, - "Column": 52 - }, - "Value": "d" - } - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 85, - "End": 136, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 91, - "Line": 3, - "Column": 21 - }, - "Value": "field" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefinedByUnNamedQuery.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefinedByUnNamedQuery.snap index 07a9d6438d4..e6ae842f8b2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefinedByUnNamedQuery.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariableNotDefinedByUnNamedQuery.snap @@ -12,364 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 149, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 40, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 39, - "End": 52, - "Line": 2, - "Column": 39 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 39, - "End": 42, - "Line": 2, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 40, - "End": 42, - "Line": 2, - "Column": 40 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 51, - "End": 62, - "Line": 2, - "Column": 51 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 51, - "End": 54, - "Line": 2, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 52, - "End": 54, - "Line": 2, - "Column": 52 - }, - "Value": "c" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 63, - "End": 149, - "Line": 2, - "Column": 63 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 91, - "End": 99, - "Line": 3, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 91, - "End": 93, - "Line": 3, - "Column": 27 - }, - "Value": "a" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 94, - "End": 99, - "Line": 3, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 95, - "End": 99, - "Line": 3, - "Column": 31 - }, - "Value": "a" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 98, - "End": 106, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 98, - "End": 100, - "Line": 3, - "Column": 34 - }, - "Value": "b" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 101, - "End": 106, - "Line": 3, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 102, - "End": 106, - "Line": 3, - "Column": 38 - }, - "Value": "b" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 105, - "End": 113, - "Line": 3, - "Column": 41 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 105, - "End": 107, - "Line": 3, - "Column": 41 - }, - "Value": "c" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 108, - "End": 113, - "Line": 3, - "Column": 44 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 109, - "End": 113, - "Line": 3, - "Column": 45 - }, - "Value": "c" - } - } - }, - { - "Kind": "Argument", - "Location": { - "Start": 112, - "End": 118, - "Line": 3, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 112, - "End": 114, - "Line": 3, - "Column": 48 - }, - "Value": "d" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 115, - "End": 118, - "Line": 3, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 116, - "End": 118, - "Line": 3, - "Column": 52 - }, - "Value": "d" - } - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 85, - "End": 136, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 91, - "Line": 3, - "Column": 21 - }, - "Value": "field" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariablesInFragmentNotDefinedByMultipleOperations.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariablesInFragmentNotDefinedByMultipleOperations.snap index 295864c2b64..4edd4cd5953 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariablesInFragmentNotDefinedByMultipleOperations.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUndefinedVariablesRuleTests.VariablesInFragmentNotDefinedByMultipleOperations.snap @@ -12,110 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 18, - "End": 128, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 28, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 28, - "End": 39, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 28, - "End": 31, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 29, - "End": 31, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 32, - "End": 39, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 40, - "End": 128, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 62, - "End": 89, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 65, - "End": 89, - "Line": 3, - "Column": 24 - }, - "Value": "FragAB" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: b.", @@ -130,109 +27,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 123, - "End": 236, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 129, - "End": 133, - "Line": 6, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 133, - "End": 144, - "Line": 6, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 133, - "End": 136, - "Line": 6, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 134, - "End": 136, - "Line": 6, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 137, - "End": 144, - "Line": 6, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 137, - "End": 144, - "Line": 6, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 145, - "End": 236, - "Line": 6, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 167, - "End": 194, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 170, - "End": 194, - "Line": 7, - "Column": 24 - }, - "Value": "FragAB" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownAndUndefFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownAndUndefFragments.snap index 8b495edba75..b23651430b7 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownAndUndefFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownAndUndefFragments.snap @@ -22,27 +22,7 @@ "fragment": "bar", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragment-spread-target-defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentSpread", - "Location": { - "Start": 83, - "End": 111, - "Line": 4, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 86, - "End": 111, - "Line": 4, - "Column": 24 - }, - "Value": "bar" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The specified fragment `foo` is not used within the current document.", @@ -58,81 +38,6 @@ "fragment": "foo", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 162, - "End": 169, - "Line": 7, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 162, - "End": 169, - "Line": 7, - "Column": 33 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 168, - "End": 225, - "Line": 7, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 190, - "End": 212, - "Line": 8, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 190, - "End": 212, - "Line": 8, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 146, - "End": 225, - "Line": 7, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 155, - "End": 161, - "Line": 7, - "Column": 26 - }, - "Value": "foo" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragments.snap index ef45bf0c2df..cf876e3d9f4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragments.snap @@ -13,82 +13,7 @@ "fragment": "Unused1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 627, - "End": 634, - "Line": 22, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 627, - "End": 634, - "Line": 22, - "Column": 37 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 633, - "End": 702, - "Line": 22, - "Column": 43 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 655, - "End": 677, - "Line": 23, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 655, - "End": 677, - "Line": 23, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 607, - "End": 702, - "Line": 22, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 616, - "End": 626, - "Line": 22, - "Column": 26 - }, - "Value": "Unused1" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The specified fragment `Unused2` is not used within the current document.", @@ -104,81 +29,6 @@ "fragment": "Unused2", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 714, - "End": 721, - "Line": 25, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 714, - "End": 721, - "Line": 25, - "Column": 37 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 720, - "End": 777, - "Line": 25, - "Column": 43 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 742, - "End": 764, - "Line": 26, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 742, - "End": 764, - "Line": 26, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 694, - "End": 777, - "Line": 25, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 703, - "End": 713, - "Line": 25, - "Column": 26 - }, - "Value": "Unused2" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragmentsWithRefCycle.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragmentsWithRefCycle.snap index 34e57e92508..bf959cc389b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragmentsWithRefCycle.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedFragmentsRuleTests.ContainsUnknownFragmentsWithRefCycle.snap @@ -13,102 +13,7 @@ "fragment": "Unused1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 627, - "End": 634, - "Line": 22, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 627, - "End": 634, - "Line": 22, - "Column": 37 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 633, - "End": 733, - "Line": 22, - "Column": 43 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 655, - "End": 683, - "Line": 23, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 655, - "End": 683, - "Line": 23, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - }, - { - "Kind": "FragmentSpread", - "Location": { - "Start": 680, - "End": 708, - "Line": 24, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 683, - "End": 708, - "Line": 24, - "Column": 24 - }, - "Value": "Unused2" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 607, - "End": 733, - "Line": 22, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 616, - "End": 626, - "Line": 22, - "Column": 26 - }, - "Value": "Unused1" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The specified fragment `Unused2` is not used within the current document.", @@ -124,101 +29,6 @@ "fragment": "Unused2", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Fragments-Must-Be-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FragmentDefinition", - "VariableDefinitions": [], - "TypeCondition": { - "Kind": "NamedType", - "Location": { - "Start": 745, - "End": 752, - "Line": 26, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 745, - "End": 752, - "Line": 26, - "Column": 37 - }, - "Value": "Human" - } - }, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 751, - "End": 839, - "Line": 26, - "Column": 43 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 773, - "End": 801, - "Line": 27, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 773, - "End": 801, - "Line": 27, - "Column": 21 - }, - "Value": "name" - }, - "Directives": [] - }, - { - "Kind": "FragmentSpread", - "Location": { - "Start": 798, - "End": 826, - "Line": 28, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 801, - "End": 826, - "Line": 28, - "Column": 24 - }, - "Value": "Unused1" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 725, - "End": 839, - "Line": 26, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 734, - "End": 744, - "Line": 26, - "Column": 26 - }, - "Value": "Unused2" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsed.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsed.snap index 0d2e5bd5399..b40b828377e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsed.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsed.snap @@ -12,250 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 128, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 40, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 39, - "End": 52, - "Line": 2, - "Column": 39 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 39, - "End": 42, - "Line": 2, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 40, - "End": 42, - "Line": 2, - "Column": 40 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 51, - "End": 62, - "Line": 2, - "Column": 51 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 51, - "End": 54, - "Line": 2, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 52, - "End": 54, - "Line": 2, - "Column": 52 - }, - "Value": "c" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 63, - "End": 128, - "Line": 2, - "Column": 63 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 91, - "End": 97, - "Line": 3, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 91, - "End": 93, - "Line": 3, - "Column": 27 - }, - "Value": "b" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 94, - "End": 97, - "Line": 3, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 95, - "End": 97, - "Line": 3, - "Column": 31 - }, - "Value": "b" - } - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 85, - "End": 115, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 91, - "Line": 3, - "Column": 21 - }, - "Value": "field" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsedInFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsedInFragments.snap index 808aa63da5a..43c6ee88ae9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsedInFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.MultipleVariablesNotUsedInFragments.snap @@ -12,207 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 136, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 40, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 39, - "End": 52, - "Line": 2, - "Column": 39 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 39, - "End": 42, - "Line": 2, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 40, - "End": 42, - "Line": 2, - "Column": 40 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 51, - "End": 62, - "Line": 2, - "Column": 51 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 51, - "End": 54, - "Line": 2, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 52, - "End": 54, - "Line": 2, - "Column": 52 - }, - "Value": "c" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 63, - "End": 136, - "Line": 2, - "Column": 63 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 85, - "End": 111, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 111, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByFragmentUsedByOtherOperation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByFragmentUsedByOtherOperation.snap index 5312abea9fc..990df339e24 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByFragmentUsedByOtherOperation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByFragmentUsedByOtherOperation.snap @@ -12,110 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 109, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 38, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 39, - "End": 109, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 61, - "End": 87, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 64, - "End": 87, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: a.", @@ -130,110 +27,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 109, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 38, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 39, - "End": 109, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 61, - "End": 87, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 64, - "End": 87, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not used: a.", @@ -248,110 +42,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 104, - "End": 199, - "Line": 5, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 110, - "End": 114, - "Line": 5, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 114, - "End": 125, - "Line": 5, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 114, - "End": 117, - "Line": 5, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 115, - "End": 117, - "Line": 5, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 118, - "End": 125, - "Line": 5, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 118, - "End": 125, - "Line": 5, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 126, - "End": 199, - "Line": 5, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 148, - "End": 174, - "Line": 6, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 151, - "End": 174, - "Line": 6, - "Column": 24 - }, - "Value": "FragB" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: b.", @@ -366,109 +57,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 104, - "End": 199, - "Line": 5, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 110, - "End": 114, - "Line": 5, - "Column": 23 - }, - "Value": "Bar" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 114, - "End": 125, - "Line": 5, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 114, - "End": 117, - "Line": 5, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 115, - "End": 117, - "Line": 5, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 118, - "End": 125, - "Line": 5, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 118, - "End": 125, - "Line": 5, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 126, - "End": 199, - "Line": 5, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 148, - "End": 174, - "Line": 6, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 151, - "End": 174, - "Line": 6, - "Column": 24 - }, - "Value": "FragB" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByUnreferencedFragment.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByUnreferencedFragment.snap index 49e2ec1316d..269f28b9a74 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByUnreferencedFragment.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedByUnreferencedFragment.snap @@ -12,110 +12,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 112, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 38, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 39, - "End": 112, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 61, - "End": 87, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 64, - "End": 87, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null }, { "Message": "The following variables were not declared: a.", @@ -130,109 +27,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variable-Uses-Defined" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 112, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 38, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 38, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 39, - "End": 112, - "Line": 2, - "Column": 39 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 61, - "End": 87, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 64, - "End": 87, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedInFragments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedInFragments.snap index 808aa63da5a..43c6ee88ae9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedInFragments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/NoUnusedVariablesRuleTests.VariableNotUsedInFragments.snap @@ -12,207 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 136, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 27, - "Line": 2, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 27, - "End": 40, - "Line": 2, - "Column": 27 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 27, - "End": 30, - "Line": 2, - "Column": 27 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 28, - "End": 30, - "Line": 2, - "Column": 28 - }, - "Value": "a" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 31, - "End": 40, - "Line": 2, - "Column": 31 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 39, - "End": 52, - "Line": 2, - "Column": 39 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 39, - "End": 42, - "Line": 2, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 40, - "End": 42, - "Line": 2, - "Column": 40 - }, - "Value": "b" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 52, - "Line": 2, - "Column": 43 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - }, - { - "Kind": "VariableDefinition", - "Location": { - "Start": 51, - "End": 62, - "Line": 2, - "Column": 51 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 51, - "End": 54, - "Line": 2, - "Column": 51 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 52, - "End": 54, - "Line": 2, - "Column": 52 - }, - "Value": "c" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 55, - "End": 62, - "Line": 2, - "Column": 55 - }, - "Value": "String" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 63, - "End": 136, - "Line": 2, - "Column": 63 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 85, - "End": 111, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 111, - "Line": 3, - "Column": 24 - }, - "Value": "FragA" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.EmptyOneOf.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.EmptyOneOf.snap index f144f0634d3..38fab3c1e18 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.EmptyOneOf.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.EmptyOneOf.snap @@ -23,16 +23,6 @@ "specifiedBy": "https://spec.graphql.org/draft/#sec-Oneof–Input-Objects-Have-Exactly-One-Field", "rfc": "https://github.com/graphql/graphql-spec/pull/825" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 67, - "End": 71, - "Line": 3, - "Column": 33 - }, - "Fields": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.IfFieldWithLiteralValueIsPresentThenTheValueMustNotBeNull_Error.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.IfFieldWithLiteralValueIsPresentThenTheValueMustNotBeNull_Error.snap index 37f77ba0f23..38fab3c1e18 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.IfFieldWithLiteralValueIsPresentThenTheValueMustNotBeNull_Error.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.IfFieldWithLiteralValueIsPresentThenTheValueMustNotBeNull_Error.snap @@ -23,46 +23,6 @@ "specifiedBy": "https://spec.graphql.org/draft/#sec-Oneof–Input-Objects-Have-Exactly-One-Field", "rfc": "https://github.com/graphql/graphql-spec/pull/825" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 67, - "End": 81, - "Line": 3, - "Column": 33 - }, - "Fields": [ - { - "Kind": "ObjectField", - "Location": { - "Start": 69, - "End": 80, - "Line": 3, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 69, - "End": 73, - "Line": 3, - "Column": 35 - }, - "Value": "cat" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 74, - "End": 80, - "Line": 3, - "Column": 40 - }, - "Value": null - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_1.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_1.snap index 92990da2b64..38fab3c1e18 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_1.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_1.snap @@ -23,93 +23,6 @@ "specifiedBy": "https://spec.graphql.org/draft/#sec-Oneof–Input-Objects-Have-Exactly-One-Field", "rfc": "https://github.com/graphql/graphql-spec/pull/825" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 99, - "End": 122, - "Line": 3, - "Column": 33 - }, - "Fields": [ - { - "Kind": "ObjectField", - "Location": { - "Start": 100, - "End": 114, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 100, - "End": 104, - "Line": 3, - "Column": 34 - }, - "Value": "cat" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 105, - "End": 114, - "Line": 3, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 106, - "End": 114, - "Line": 3, - "Column": 40 - }, - "Value": "cat" - } - } - }, - { - "Kind": "ObjectField", - "Location": { - "Start": 111, - "End": 121, - "Line": 3, - "Column": 45 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 111, - "End": 115, - "Line": 3, - "Column": 45 - }, - "Value": "dog" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 116, - "End": 121, - "Line": 3, - "Column": 50 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 117, - "End": 121, - "Line": 3, - "Column": 51 - }, - "Value": "dog" - } - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_2.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_2.snap index f450d084bd9..38fab3c1e18 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_2.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_2.snap @@ -23,115 +23,6 @@ "specifiedBy": "https://spec.graphql.org/draft/#sec-Oneof–Input-Objects-Have-Exactly-One-Field", "rfc": "https://github.com/graphql/graphql-spec/pull/825" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 83, - "End": 123, - "Line": 3, - "Column": 33 - }, - "Fields": [ - { - "Kind": "ObjectField", - "Location": { - "Start": 85, - "End": 114, - "Line": 3, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 89, - "Line": 3, - "Column": 35 - }, - "Value": "cat" - }, - "Value": { - "Kind": "ObjectValue", - "Location": { - "Start": 90, - "End": 114, - "Line": 3, - "Column": 40 - }, - "Fields": [ - { - "Kind": "ObjectField", - "Location": { - "Start": 92, - "End": 109, - "Line": 3, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 92, - "End": 97, - "Line": 3, - "Column": 42 - }, - "Value": "name" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 98, - "End": 109, - "Line": 3, - "Column": 48 - }, - "Value": "Brontie", - "Block": false - } - } - ] - } - }, - { - "Kind": "ObjectField", - "Location": { - "Start": 111, - "End": 122, - "Line": 3, - "Column": 61 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 111, - "End": 115, - "Line": 3, - "Column": 61 - }, - "Value": "dog" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 116, - "End": 122, - "Line": 3, - "Column": 66 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 117, - "End": 122, - "Line": 3, - "Column": 67 - }, - "Value": "dog" - } - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_3.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_3.snap index 92990da2b64..38fab3c1e18 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_3.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.MultipleFieldsAreNotAllowed_3.snap @@ -23,93 +23,6 @@ "specifiedBy": "https://spec.graphql.org/draft/#sec-Oneof–Input-Objects-Have-Exactly-One-Field", "rfc": "https://github.com/graphql/graphql-spec/pull/825" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 99, - "End": 122, - "Line": 3, - "Column": 33 - }, - "Fields": [ - { - "Kind": "ObjectField", - "Location": { - "Start": 100, - "End": 114, - "Line": 3, - "Column": 34 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 100, - "End": 104, - "Line": 3, - "Column": 34 - }, - "Value": "cat" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 105, - "End": 114, - "Line": 3, - "Column": 39 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 106, - "End": 114, - "Line": 3, - "Column": 40 - }, - "Value": "cat" - } - } - }, - { - "Kind": "ObjectField", - "Location": { - "Start": 111, - "End": 121, - "Line": 3, - "Column": 45 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 111, - "End": 115, - "Line": 3, - "Column": 45 - }, - "Value": "dog" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 116, - "End": 121, - "Line": 3, - "Column": 50 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 117, - "End": 121, - "Line": 3, - "Column": 51 - }, - "Value": "dog" - } - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.VariablesUsedForOneofInputObjectFieldsMustBeNonNullable_Error.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.VariablesUsedForOneofInputObjectFieldsMustBeNonNullable_Error.snap index 2e495224ae7..bae3b582cd6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.VariablesUsedForOneofInputObjectFieldsMustBeNonNullable_Error.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OneOfRuleTests.VariablesUsedForOneofInputObjectFieldsMustBeNonNullable_Error.snap @@ -23,55 +23,6 @@ "specifiedBy": "https://spec.graphql.org/draft/#sec-Oneof–Input-Objects-Have-Exactly-One-Field", "rfc": "https://github.com/graphql/graphql-spec/pull/825" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectValue", - "Location": { - "Start": 83, - "End": 97, - "Line": 3, - "Column": 33 - }, - "Fields": [ - { - "Kind": "ObjectField", - "Location": { - "Start": 85, - "End": 96, - "Line": 3, - "Column": 35 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 85, - "End": 89, - "Line": 3, - "Column": 35 - }, - "Value": "cat" - }, - "Value": { - "Kind": "Variable", - "Location": { - "Start": 90, - "End": 96, - "Line": 3, - "Column": 40 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 91, - "End": 96, - "Line": 3, - "Column": 41 - }, - "Value": "cat" - } - } - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOperationsOfSameName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOperationsOfSameName.snap index 02ada02957e..33f7b7c7ee4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOperationsOfSameName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOperationsOfSameName.snap @@ -13,63 +13,6 @@ "operation": "Foo", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Operation-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 107, - "End": 176, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 113, - "End": 118, - "Line": 6, - "Column": 23 - }, - "Value": "Foo" - }, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 117, - "End": 176, - "Line": 6, - "Column": 27 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 139, - "End": 163, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 139, - "End": 163, - "Line": 7, - "Column": 21 - }, - "Value": "anyArg" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesMutation.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesMutation.snap index e1f8cd1f983..33f7b7c7ee4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesMutation.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesMutation.snap @@ -13,63 +13,6 @@ "operation": "Foo", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Operation-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 107, - "End": 179, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 116, - "End": 121, - "Line": 6, - "Column": 26 - }, - "Value": "Foo" - }, - "Operation": "Mutation", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 120, - "End": 179, - "Line": 6, - "Column": 30 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 142, - "End": 166, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 142, - "End": 166, - "Line": 7, - "Column": 21 - }, - "Value": "fieldB" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesSubscription.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesSubscription.snap index bba9cd93676..33f7b7c7ee4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesSubscription.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.MultipleOpsOfSameNameOfDifferentTypesSubscription.snap @@ -13,97 +13,6 @@ "operation": "Foo", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Operation-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 107, - "End": 240, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 120, - "End": 125, - "Line": 6, - "Column": 30 - }, - "Value": "Foo" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 124, - "End": 240, - "Line": 6, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 157, - "End": 227, - "Line": 7, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 183, - "End": 209, - "Line": 8, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 183, - "End": 209, - "Line": 8, - "Column": 25 - }, - "Value": "bdoy" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 146, - "End": 227, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 146, - "End": 158, - "Line": 7, - "Column": 21 - }, - "Value": "newMessage" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoOperationsWithTheSameName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoOperationsWithTheSameName.snap index 1cc4a694687..f460b858a22 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoOperationsWithTheSameName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoOperationsWithTheSameName.snap @@ -13,97 +13,6 @@ "operation": "dogOperation", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Operation-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 150, - "End": 285, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 159, - "End": 173, - "Line": 8, - "Column": 26 - }, - "Value": "dogOperation" - }, - "Operation": "Mutation", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 172, - "End": 285, - "Line": 8, - "Column": 39 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 204, - "End": 272, - "Line": 9, - "Column": 31 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 230, - "End": 254, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 230, - "End": 254, - "Line": 10, - "Column": 25 - }, - "Value": "id" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 194, - "End": 272, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 194, - "End": 205, - "Line": 9, - "Column": 21 - }, - "Value": "mutateDog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoQueryOperationsWithTheSameName.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoQueryOperationsWithTheSameName.snap index b71de7fb401..d594e246a76 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoQueryOperationsWithTheSameName.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/OperationNameUniquenessRuleTests.TwoQueryOperationsWithTheSameName.snap @@ -13,131 +13,6 @@ "operation": "getName", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Operation-Name-Uniqueness" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 145, - "End": 330, - "Line": 8, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 151, - "End": 160, - "Line": 8, - "Column": 23 - }, - "Value": "getName" - }, - "Operation": "Query", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 159, - "End": 330, - "Line": 8, - "Column": 31 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 185, - "End": 317, - "Line": 9, - "Column": 25 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 217, - "End": 299, - "Line": 10, - "Column": 31 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 247, - "End": 277, - "Line": 11, - "Column": 29 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 247, - "End": 277, - "Line": 11, - "Column": 29 - }, - "Value": "name" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 211, - "End": 299, - "Line": 10, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 211, - "End": 218, - "Line": 10, - "Column": 25 - }, - "Value": "owner" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 181, - "End": 317, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 181, - "End": 186, - "Line": 9, - "Column": 21 - }, - "Value": "dog" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadMultipleNullValueType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadMultipleNullValueType.snap index d76a736113c..8aef440b281 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadMultipleNullValueType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadMultipleNullValueType.snap @@ -24,35 +24,6 @@ "argument": "y", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 97, - "End": 105, - "Line": 4, - "Column": 45 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 97, - "End": 99, - "Line": 4, - "Column": 45 - }, - "Value": "y" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 100, - "End": 105, - "Line": 4, - "Column": 48 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullBool.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullBool.snap index 2c3de623a99..30230b5b3da 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullBool.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullBool.snap @@ -24,35 +24,6 @@ "argument": "nonNullBooleanArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 98, - "End": 122, - "Line": 4, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 98, - "End": 116, - "Line": 4, - "Column": 48 - }, - "Value": "nonNullBooleanArg" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 117, - "End": 122, - "Line": 4, - "Column": 67 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullFloat.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullFloat.snap index ef9177b9789..24316c7e0b2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullFloat.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullFloat.snap @@ -24,35 +24,6 @@ "argument": "floatArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 96, - "End": 111, - "Line": 4, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 96, - "End": 105, - "Line": 4, - "Column": 46 - }, - "Value": "floatArg" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 106, - "End": 111, - "Line": 4, - "Column": 56 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullId.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullId.snap index 8bbc14d3959..6c106584c79 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullId.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullId.snap @@ -24,35 +24,6 @@ "argument": "idArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 93, - "End": 105, - "Line": 4, - "Column": 43 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 93, - "End": 99, - "Line": 4, - "Column": 43 - }, - "Value": "idArg" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 100, - "End": 105, - "Line": 4, - "Column": 50 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullInt.snap index 372be14fcc7..36063302d66 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullInt.snap @@ -24,35 +24,6 @@ "argument": "intArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 94, - "End": 107, - "Line": 4, - "Column": 44 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 94, - "End": 101, - "Line": 4, - "Column": 44 - }, - "Value": "intArg" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 102, - "End": 107, - "Line": 4, - "Column": 52 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullString.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullString.snap index c5eab5d1bea..a075ce8142d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullString.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.BadNullIntoNonNullString.snap @@ -24,35 +24,6 @@ "argument": "stringArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 97, - "End": 113, - "Line": 4, - "Column": 47 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 97, - "End": 107, - "Line": 4, - "Column": 47 - }, - "Value": "stringArg" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 108, - "End": 113, - "Line": 4, - "Column": 58 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.IncorrectValueAndMissingArgument.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.IncorrectValueAndMissingArgument.snap index a5bfefe85dc..ba417993826 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.IncorrectValueAndMissingArgument.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.IncorrectValueAndMissingArgument.snap @@ -24,37 +24,7 @@ "argument": "req1", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 88, - "End": 100, - "Line": 4, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 93, - "Line": 4, - "Column": 38 - }, - "Value": "req1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 94, - "End": 100, - "Line": 4, - "Column": 44 - }, - "Value": "one", - "Block": false - } - } + "Exception": null }, { "Message": "The argument `x` is required.", @@ -81,62 +51,7 @@ "argument": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 88, - "End": 100, - "Line": 4, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 93, - "Line": 4, - "Column": 38 - }, - "Value": "req1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 94, - "End": 100, - "Line": 4, - "Column": 44 - }, - "Value": "one", - "Block": false - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 75, - "End": 122, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 88, - "Line": 4, - "Column": 25 - }, - "Value": "multipleReqs" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The argument `y` is required.", @@ -163,61 +78,6 @@ "argument": "y", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 88, - "End": 100, - "Line": 4, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 93, - "Line": 4, - "Column": 38 - }, - "Value": "req1" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 94, - "End": 100, - "Line": 4, - "Column": 44 - }, - "Value": "one", - "Block": false - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 75, - "End": 122, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 88, - "Line": 4, - "Column": 25 - }, - "Value": "multipleReqs" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingMultipleNonNullableArguments.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingMultipleNonNullableArguments.snap index f6558c29c62..25dac58dc3f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingMultipleNonNullableArguments.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingMultipleNonNullableArguments.snap @@ -24,31 +24,7 @@ "argument": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 75, - "End": 109, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 109, - "Line": 4, - "Column": 25 - }, - "Value": "multipleReqs" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The argument `y` is required.", @@ -75,30 +51,6 @@ "argument": "y", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 75, - "End": 109, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 109, - "Line": 4, - "Column": 25 - }, - "Value": "multipleReqs" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingOneNonNullableArgument.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingOneNonNullableArgument.snap index 6f7e134773f..b5aa171f538 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingOneNonNullableArgument.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingOneNonNullableArgument.snap @@ -24,36 +24,7 @@ "argument": "req2", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 88, - "End": 96, - "Line": 4, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 93, - "Line": 4, - "Column": 38 - }, - "Value": "req2" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 94, - "End": 96, - "Line": 4, - "Column": 44 - }, - "Value": "2" - } - } + "Exception": null }, { "Message": "The argument `x` is required.", @@ -80,61 +51,7 @@ "argument": "x", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 88, - "End": 96, - "Line": 4, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 93, - "Line": 4, - "Column": 38 - }, - "Value": "req2" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 94, - "End": 96, - "Line": 4, - "Column": 44 - }, - "Value": "2" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 75, - "End": 118, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 88, - "Line": 4, - "Column": 25 - }, - "Value": "multipleReqs" - }, - "Directives": [] - } + "Exception": null }, { "Message": "The argument `y` is required.", @@ -161,60 +78,6 @@ "argument": "y", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [ - { - "Kind": "Argument", - "Location": { - "Start": 88, - "End": 96, - "Line": 4, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 88, - "End": 93, - "Line": 4, - "Column": 38 - }, - "Value": "req2" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 94, - "End": 96, - "Line": 4, - "Column": 44 - }, - "Value": "2" - } - } - ], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 75, - "End": 118, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 75, - "End": 88, - "Line": 4, - "Column": 25 - }, - "Value": "multipleReqs" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArg.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArg.snap index af1da288b9b..3452a8aae0e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArg.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArg.snap @@ -24,30 +24,6 @@ "argument": "nonNullBooleanArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 224, - "End": 264, - "Line": 9, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 224, - "End": 264, - "Line": 9, - "Column": 21 - }, - "Value": "nonNullBooleanArgField" - }, - "Directives": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArgNonNullBooleanArg.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArgNonNullBooleanArg.snap index 475f8075eab..ed33d99fc52 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArgNonNullBooleanArg.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredArgNonNullBooleanArg.snap @@ -24,35 +24,6 @@ "argument": "nonNullBooleanArg", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Argument", - "Location": { - "Start": 247, - "End": 271, - "Line": 9, - "Column": 44 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 247, - "End": 265, - "Line": 9, - "Column": 44 - }, - "Value": "nonNullBooleanArg" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 266, - "End": 271, - "Line": 9, - "Column": 63 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredDirectiveArg.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredDirectiveArg.snap index b2ffe564409..274dd556768 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredDirectiveArg.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.MissingRequiredDirectiveArg.snap @@ -28,26 +28,6 @@ "argument": "if", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 272, - "End": 297, - "Line": 9, - "Column": 69 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 273, - "End": 278, - "Line": 9, - "Column": 70 - }, - "Value": "skip" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.WithDirectiveWithMissingTypes.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.WithDirectiveWithMissingTypes.snap index e374f7b690c..588deab034b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.WithDirectiveWithMissingTypes.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/RequiredArgumentRuleTests.WithDirectiveWithMissingTypes.snap @@ -23,27 +23,7 @@ "argument": "if", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 42, - "End": 52, - "Line": 3, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 43, - "End": 52, - "Line": 3, - "Column": 26 - }, - "Value": "include" - }, - "Arguments": [] - } + "Exception": null }, { "Message": "The argument `if` is required.", @@ -74,26 +54,6 @@ "argument": "if", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Required-Arguments" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Directive", - "Location": { - "Start": 82, - "End": 109, - "Line": 4, - "Column": 30 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 83, - "End": 109, - "Line": 4, - "Column": 31 - }, - "Value": "skip" - }, - "Arguments": [] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_1.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_1.snap index c3e2821cc9d..646d3c6f031 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_1.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_1.snap @@ -12,51 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Stream-Directives-Are-Used-On-List-Fields" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 24, - "End": 56, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 24, - "End": 36, - "Line": 2, - "Column": 17 - }, - "Value": "__typename" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 35, - "End": 56, - "Line": 2, - "Column": 28 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 36, - "End": 56, - "Line": 2, - "Column": 29 - }, - "Value": "stream" - }, - "Arguments": [] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_2.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_2.snap index a2a8945092c..fd2f9fec9ea 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_2.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/StreamDirectivesAreUsedOnListFieldsTests.Stream_On_String_Field_2.snap @@ -21,51 +21,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Stream-Directives-Are-Used-On-List-Fields" }, - "Exception": null, - "SyntaxNode": { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 55, - "End": 92, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 55, - "End": 68, - "Line": 3, - "Column": 21 - }, - "Value": "description" - }, - "Directives": [ - { - "Kind": "Directive", - "Location": { - "Start": 67, - "End": 92, - "Line": 3, - "Column": 33 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 68, - "End": 92, - "Line": 3, - "Column": 34 - }, - "Value": "stream" - }, - "Arguments": [] - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedIntrospectionField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedIntrospectionField.snap index 053c3be4793..d1566718634 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedIntrospectionField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedIntrospectionField.snap @@ -12,145 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Single-root-field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 212, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "sub" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 212, - "Line": 2, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 67, - "End": 181, - "Line": 3, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Value": "body" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Value": "sender" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 56, - "End": 181, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 56, - "End": 68, - "Line": 3, - "Column": 21 - }, - "Value": "newMessage" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 171, - "End": 199, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 199, - "Line": 7, - "Column": 21 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedOnlyIntrospectionField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedOnlyIntrospectionField.snap index 26a517738dd..b5f0e035299 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedOnlyIntrospectionField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedOnlyIntrospectionField.snap @@ -12,63 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Single-root-field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 97, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "sub" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 97, - "Line": 2, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 56, - "End": 84, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 56, - "End": 84, - "Line": 3, - "Column": 21 - }, - "Value": "__typename" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootField.snap index bfed6ef4e47..d1566718634 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootField.snap @@ -12,145 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Single-root-field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 227, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "sub" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 227, - "Line": 2, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 67, - "End": 196, - "Line": 3, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Value": "body" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Value": "sender" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 56, - "End": 196, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 56, - "End": 68, - "Line": 3, - "Column": 21 - }, - "Value": "newMessage" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 171, - "End": 214, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 214, - "Line": 7, - "Column": 21 - }, - "Value": "disallowedSecondRootField" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldAnonymous.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldAnonymous.snap index bfed6ef4e47..d1566718634 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldAnonymous.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldAnonymous.snap @@ -12,145 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Single-root-field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 227, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "sub" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 227, - "Line": 2, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 67, - "End": 196, - "Line": 3, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Value": "body" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Value": "sender" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 56, - "End": 196, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 56, - "End": 68, - "Line": 3, - "Column": 21 - }, - "Value": "newMessage" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 171, - "End": 214, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 214, - "Line": 7, - "Column": 21 - }, - "Value": "disallowedSecondRootField" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldWithinDirective.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldWithinDirective.snap index 0a1ebb97aae..d1566718634 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldWithinDirective.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.DisallowedSecondRootFieldWithinDirective.snap @@ -12,59 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Single-root-field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 124, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "sub" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 124, - "Line": 2, - "Column": 34 - }, - "Selections": [ - { - "Kind": "FragmentSpread", - "Location": { - "Start": 56, - "End": 98, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 59, - "End": 98, - "Line": 3, - "Column": 24 - }, - "Value": "multipleSubscriptions" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.FailsWithManyMoreThanOneRootField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.FailsWithManyMoreThanOneRootField.snap index 9b50148320e..d1566718634 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.FailsWithManyMoreThanOneRootField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/SubscriptionSingleRootFieldRuleTests.FailsWithManyMoreThanOneRootField.snap @@ -12,169 +12,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-Single-root-field" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 272, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 30, - "End": 35, - "Line": 2, - "Column": 30 - }, - "Value": "sub" - }, - "Operation": "Subscription", - "VariableDefinitions": [], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 34, - "End": 272, - "Line": 2, - "Column": 34 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 67, - "End": 196, - "Line": 3, - "Column": 32 - }, - "Selections": [ - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 93, - "End": 128, - "Line": 4, - "Column": 25 - }, - "Value": "body" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 122, - "End": 150, - "Line": 5, - "Column": 25 - }, - "Value": "sender" - }, - "Directives": [] - } - ] - }, - "Location": { - "Start": 56, - "End": 196, - "Line": 3, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 56, - "End": 68, - "Line": 3, - "Column": 21 - }, - "Value": "newMessage" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 171, - "End": 241, - "Line": 7, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 171, - "End": 241, - "Line": 7, - "Column": 21 - }, - "Value": "disallowedSecondRootField" - }, - "Directives": [] - }, - { - "Kind": "Field", - "Alias": null, - "Arguments": [], - "Required": null, - "SelectionSet": null, - "Location": { - "Start": 217, - "End": 259, - "Line": 8, - "Column": 21 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 217, - "End": 259, - "Line": 8, - "Column": 21 - }, - "Value": "disallowedThirdRootField" - }, - "Directives": [] - } - ] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoEnum.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoEnum.snap index a28b1ba5568..9a47c20a10c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoEnum.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoEnum.snap @@ -29,16 +29,6 @@ "locationType": "DogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "BooleanValue", - "Location": { - "Start": 97, - "End": 102, - "Line": 4, - "Column": 47 - }, - "Value": true - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoFloat.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoFloat.snap index a0bfb1b86d5..a94f285df91 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoFloat.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoFloat.snap @@ -29,16 +29,6 @@ "locationType": "Float", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "BooleanValue", - "Location": { - "Start": 99, - "End": 104, - "Line": 4, - "Column": 49 - }, - "Value": true - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoId.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoId.snap index 4a495428740..b0ce266c1e4 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoId.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoId.snap @@ -29,16 +29,6 @@ "locationType": "ID", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "BooleanValue", - "Location": { - "Start": 93, - "End": 98, - "Line": 4, - "Column": 43 - }, - "Value": true - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoInt.snap index d9c290b6477..8486817272c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoInt.snap @@ -29,16 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "BooleanValue", - "Location": { - "Start": 95, - "End": 101, - "Line": 4, - "Column": 45 - }, - "Value": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoString.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoString.snap index fbc7a3d1add..1728454c231 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoString.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanIntoString.snap @@ -29,16 +29,6 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "BooleanValue", - "Location": { - "Start": 101, - "End": 106, - "Line": 4, - "Column": 51 - }, - "Value": true - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArg.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArg.snap index beb6a912bba..3bb1582a744 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArg.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArg.snap @@ -24,38 +24,6 @@ "locationType": "[Boolean!]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ListValue", - "Location": { - "Start": 110, - "End": 128, - "Line": 4, - "Column": 49 - }, - "Items": [ - { - "Kind": "BooleanValue", - "Location": { - "Start": 112, - "End": 124, - "Line": 4, - "Column": 51 - }, - "Value": true - }, - { - "Kind": "StringValue", - "Location": { - "Start": 118, - "End": 127, - "Line": 4, - "Column": 57 - }, - "Value": "false", - "Block": false - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArgString.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArgString.snap index cf90d1c1fd7..3e22e4dfc52 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArgString.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadBooleanListArgString.snap @@ -24,17 +24,6 @@ "locationType": "[Boolean!]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 111, - "End": 120, - "Line": 4, - "Column": 50 - }, - "Value": "false", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexInputInvalidElementType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexInputInvalidElementType.snap index 4e50eb4f524..114ce5c958a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexInputInvalidElementType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexInputInvalidElementType.snap @@ -29,38 +29,6 @@ "locationType": "[String]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ListValue", - "Location": { - "Start": 150, - "End": 203, - "Line": 5, - "Column": 46 - }, - "Items": [ - { - "Kind": "StringValue", - "Location": { - "Start": 151, - "End": 159, - "Line": 5, - "Column": 47 - }, - "Value": "one", - "Block": false - }, - { - "Kind": "IntValue", - "Location": { - "Start": 158, - "End": 160, - "Line": 5, - "Column": 54 - }, - "Value": "2" - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueArgument.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueArgument.snap index 4dae81a8444..61ff6200836 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueArgument.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueArgument.snap @@ -24,16 +24,6 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 86, - "End": 91, - "Line": 3, - "Column": 46 - }, - "Value": "123" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueVariable.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueVariable.snap index 8e60d76e21d..b5915b1d129 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueVariable.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadComplexValueVariable.snap @@ -15,16 +15,6 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 79, - "End": 84, - "Line": 2, - "Column": 79 - }, - "Value": "123" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadCustomerScalarIsInvalid.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadCustomerScalarIsInvalid.snap index 81c4c64d03a..93a2968cf8b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadCustomerScalarIsInvalid.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadCustomerScalarIsInvalid.snap @@ -24,16 +24,6 @@ "locationType": "Invalid", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 54, - "End": 58, - "Line": 3, - "Column": 36 - }, - "Value": "123" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadDirectiveInvalidTypes.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadDirectiveInvalidTypes.snap index 11aa55b2143..8199ae54e29 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadDirectiveInvalidTypes.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadDirectiveInvalidTypes.snap @@ -24,18 +24,7 @@ "locationType": "Boolean!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 55, - "End": 61, - "Line": 3, - "Column": 38 - }, - "Value": "yes", - "Block": false - } + "Exception": null }, { "Message": "The specified argument value does not match the argument type.", @@ -67,16 +56,6 @@ "locationType": "Boolean!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 103, - "End": 108, - "Line": 4, - "Column": 40 - }, - "Value": "ENUM" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoBool.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoBool.snap index 7f762a4743e..28b90aac510 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoBool.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoBool.snap @@ -29,16 +29,6 @@ "locationType": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 103, - "End": 107, - "Line": 4, - "Column": 53 - }, - "Value": "BAR" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoFloat.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoFloat.snap index 45dd1b94283..972cf6c417a 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoFloat.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoFloat.snap @@ -29,16 +29,6 @@ "locationType": "Float", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 99, - "End": 103, - "Line": 4, - "Column": 49 - }, - "Value": "BAR" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoId.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoId.snap index 02ac2570e84..533ac7ebd9f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoId.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoId.snap @@ -29,16 +29,6 @@ "locationType": "ID", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 93, - "End": 98, - "Line": 4, - "Column": 43 - }, - "Value": "TRUE" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoInt.snap index 9f985fddfce..ea7fa0d8614 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoInt.snap @@ -29,16 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 95, - "End": 99, - "Line": 4, - "Column": 45 - }, - "Value": "BAR" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoString.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoString.snap index 34c7d294e7e..69a4a2142df 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoString.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadEnumIntoString.snap @@ -29,16 +29,6 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 101, - "End": 105, - "Line": 4, - "Column": 51 - }, - "Value": "BAR" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoBool.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoBool.snap index bf2c32aedab..3f1f37b34f8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoBool.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoBool.snap @@ -29,17 +29,6 @@ "locationType": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FloatValue", - "Location": { - "Start": 103, - "End": 109, - "Line": 4, - "Column": 53 - }, - "Format": "FixedPoint", - "Value": "3.333" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoEnum.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoEnum.snap index dc9a53d3573..2a1f09a7408 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoEnum.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoEnum.snap @@ -29,17 +29,6 @@ "locationType": "DogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FloatValue", - "Location": { - "Start": 97, - "End": 101, - "Line": 4, - "Column": 47 - }, - "Format": "FixedPoint", - "Value": "1.0" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoId.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoId.snap index a26b0199b42..b0e4fc093b8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoId.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoId.snap @@ -29,17 +29,6 @@ "locationType": "ID", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FloatValue", - "Location": { - "Start": 93, - "End": 97, - "Line": 4, - "Column": 43 - }, - "Format": "FixedPoint", - "Value": "1.0" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoInt.snap index c8c414dd0cf..bf708be1798 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoInt.snap @@ -29,17 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FloatValue", - "Location": { - "Start": 95, - "End": 101, - "Line": 4, - "Column": 45 - }, - "Format": "FixedPoint", - "Value": "3.333" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoString.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoString.snap index a45451cc67e..33038ec769f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoString.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadFloatIntoString.snap @@ -29,17 +29,6 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FloatValue", - "Location": { - "Start": 101, - "End": 105, - "Line": 4, - "Column": 51 - }, - "Format": "FixedPoint", - "Value": "1.0" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIncorrectItemType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIncorrectItemType.snap index 9df55f2811c..53566a387d5 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIncorrectItemType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIncorrectItemType.snap @@ -29,38 +29,6 @@ "locationType": "[String]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ListValue", - "Location": { - "Start": 109, - "End": 120, - "Line": 4, - "Column": 59 - }, - "Items": [ - { - "Kind": "StringValue", - "Location": { - "Start": 110, - "End": 118, - "Line": 4, - "Column": 60 - }, - "Value": "one", - "Block": false - }, - { - "Kind": "IntValue", - "Location": { - "Start": 117, - "End": 119, - "Line": 4, - "Column": 67 - }, - "Value": "2" - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoEnum.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoEnum.snap index 2c9b34bf7c0..585267c37b0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoEnum.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoEnum.snap @@ -29,16 +29,6 @@ "locationType": "DogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 97, - "End": 99, - "Line": 4, - "Column": 47 - }, - "Value": "2" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoString.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoString.snap index a281f5663bd..235759f1d83 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoString.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadIntIntoString.snap @@ -29,16 +29,6 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 101, - "End": 103, - "Line": 4, - "Column": 51 - }, - "Value": "1" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadMultipleIncorrectValueType.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadMultipleIncorrectValueType.snap index 1dfc1c83a99..bffbe9ab573 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadMultipleIncorrectValueType.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadMultipleIncorrectValueType.snap @@ -29,18 +29,7 @@ "locationType": "Int!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 91, - "End": 99, - "Line": 4, - "Column": 41 - }, - "Value": "two", - "Block": false - } + "Exception": null }, { "Message": "The specified argument value does not match the argument type.", @@ -72,17 +61,6 @@ "locationType": "Int!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 101, - "End": 107, - "Line": 4, - "Column": 51 - }, - "Value": "one", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoBool.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoBool.snap index 4f15eefe518..64c3ac63b37 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoBool.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoBool.snap @@ -29,17 +29,6 @@ "locationType": "Boolean", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FloatValue", - "Location": { - "Start": 103, - "End": 107, - "Line": 4, - "Column": 53 - }, - "Format": "FixedPoint", - "Value": "3.0" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoInt.snap index 8c237822880..51836f0e414 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSimpleFloatIntoInt.snap @@ -29,17 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "FloatValue", - "Location": { - "Start": 95, - "End": 99, - "Line": 4, - "Column": 45 - }, - "Format": "FixedPoint", - "Value": "3.0" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSingleValueInvalid.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSingleValueInvalid.snap index 064b2687968..17ffbad13fb 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSingleValueInvalid.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadSingleValueInvalid.snap @@ -29,16 +29,6 @@ "locationType": "[String]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 109, - "End": 111, - "Line": 4, - "Column": 59 - }, - "Value": "2" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoBool.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoBool.snap index 7883312fdc9..0dd0070c643 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoBool.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoBool.snap @@ -29,17 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 95, - "End": 102, - "Line": 4, - "Column": 45 - }, - "Value": "true", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoEnum.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoEnum.snap index 90b9895449c..5cb7a16537f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoEnum.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoEnum.snap @@ -29,17 +29,6 @@ "locationType": "DogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 97, - "End": 103, - "Line": 4, - "Column": 47 - }, - "Value": "SIT", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoFloat.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoFloat.snap index 58e3599829b..ff3d9fc8322 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoFloat.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoFloat.snap @@ -29,17 +29,6 @@ "locationType": "Float", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 99, - "End": 107, - "Line": 4, - "Column": 49 - }, - "Value": "3.333", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoInt.snap index 2e6b5c42c5e..4c22c60723e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadStringIntoInt.snap @@ -29,17 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 95, - "End": 99, - "Line": 4, - "Column": 45 - }, - "Value": "3", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadUnknowEnumIntoEnum.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadUnknowEnumIntoEnum.snap index 4328a4919c5..2807cd746ee 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadUnknowEnumIntoEnum.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadUnknowEnumIntoEnum.snap @@ -29,16 +29,6 @@ "locationType": "DogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 97, - "End": 103, - "Line": 4, - "Column": 47 - }, - "Value": "HELLO" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadValueVariable.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadValueVariable.snap index 7d3528a2f09..bd18c9116d6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadValueVariable.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadValueVariable.snap @@ -15,16 +15,6 @@ "locationType": "ComplexInput", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 71, - "End": 75, - "Line": 2, - "Column": 71 - }, - "Value": "123" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesComplexVariableMissingRequiredField.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesComplexVariableMissingRequiredField.snap index 973e4e41b99..ec41dccaeb3 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesComplexVariableMissingRequiredField.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesComplexVariableMissingRequiredField.snap @@ -13,35 +13,6 @@ "field": "intField", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 64, - "End": 76, - "Line": 2, - "Column": 64 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 64, - "End": 73, - "Line": 2, - "Column": 64 - }, - "Value": "intField" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 74, - "End": 76, - "Line": 2, - "Column": 74 - }, - "Value": "3" - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesListWithInvalidItem.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesListWithInvalidItem.snap index 93ff6994d0f..c98da6828d9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesListWithInvalidItem.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesListWithInvalidItem.snap @@ -15,38 +15,6 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ListValue", - "Location": { - "Start": 50, - "End": 61, - "Line": 2, - "Column": 50 - }, - "Items": [ - { - "Kind": "StringValue", - "Location": { - "Start": 51, - "End": 59, - "Line": 2, - "Column": 51 - }, - "Value": "one", - "Block": false - }, - { - "Kind": "IntValue", - "Location": { - "Start": 58, - "End": 60, - "Line": 2, - "Column": 58 - }, - "Value": "2" - } - ] - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidComplexDefaultValues.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidComplexDefaultValues.snap index 386a45fd567..88e8d076f8f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidComplexDefaultValues.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidComplexDefaultValues.snap @@ -13,36 +13,7 @@ "field": "requiredField", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 87, - "End": 115, - "Line": 3, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 87, - "End": 101, - "Line": 3, - "Column": 46 - }, - "Value": "requiredField" - }, - "Value": { - "Kind": "IntValue", - "Location": { - "Start": 102, - "End": 115, - "Line": 3, - "Column": 61 - }, - "Value": "123" - } - } + "Exception": null }, { "Message": "The specified input object field `intField` does not exist.", @@ -58,36 +29,6 @@ "field": "intField", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 107, - "End": 124, - "Line": 3, - "Column": 66 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 107, - "End": 116, - "Line": 3, - "Column": 66 - }, - "Value": "intField" - }, - "Value": { - "Kind": "StringValue", - "Location": { - "Start": 117, - "End": 124, - "Line": 3, - "Column": 76 - }, - "Value": "abc", - "Block": false - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValues.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValues.snap index bd705c8fe86..6031bf76c56 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValues.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValues.snap @@ -13,36 +13,7 @@ "field": "requiredField", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 160, - "End": 189, - "Line": 5, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 160, - "End": 174, - "Line": 5, - "Column": 42 - }, - "Value": "requiredField" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 175, - "End": 189, - "Line": 5, - "Column": 57 - }, - "Value": null - } - } + "Exception": null }, { "Message": "The specified input object field `intField` does not exist.", @@ -58,35 +29,6 @@ "field": "intField", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Field-Names" }, - "Exception": null, - "SyntaxNode": { - "Kind": "ObjectField", - "Location": { - "Start": 181, - "End": 197, - "Line": 5, - "Column": 63 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 181, - "End": 190, - "Line": 5, - "Column": 63 - }, - "Value": "intField" - }, - "Value": { - "Kind": "NullValue", - "Location": { - "Start": 191, - "End": 197, - "Line": 5, - "Column": 73 - }, - "Value": null - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValuesTypes.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValuesTypes.snap index f43e438ef40..d384bb802e2 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValuesTypes.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadVariablesWithInvalidDefaultValuesTypes.snap @@ -15,18 +15,7 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 75, - "End": 103, - "Line": 3, - "Column": 31 - }, - "Value": "one", - "Block": false - } + "Exception": null }, { "Message": "The specified value type of variable `b` does not match the variable type.", @@ -44,17 +33,7 @@ "locationType": "String", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 115, - "End": 139, - "Line": 4, - "Column": 34 - }, - "Value": "4" - } + "Exception": null }, { "Message": "The specified value type of variable `c` does not match the variable type.", @@ -72,17 +51,6 @@ "locationType": "ComplexInput", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 157, - "End": 195, - "Line": 5, - "Column": 40 - }, - "Value": "NotVeryComplex", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadWrongCasingEnumIntoEnum.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadWrongCasingEnumIntoEnum.snap index a0259897729..c4e7a40e331 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadWrongCasingEnumIntoEnum.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.BadWrongCasingEnumIntoEnum.snap @@ -29,16 +29,6 @@ "locationType": "DogCommand", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "EnumValue", - "Location": { - "Start": 97, - "End": 101, - "Line": 4, - "Column": 47 - }, - "Value": "sit" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.OverflowInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.OverflowInt.snap index 9367c573c1b..9f3fd291f49 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.OverflowInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.OverflowInt.snap @@ -29,16 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "IntValue", - "Location": { - "Start": 77, - "End": 97, - "Line": 4, - "Column": 37 - }, - "Value": "9223372036854775807" - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.StringIntoInt.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.StringIntoInt.snap index c1392f0c396..1a9e76b18bc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.StringIntoInt.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.StringIntoInt.snap @@ -29,17 +29,6 @@ "locationType": "Int", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" }, - "Exception": null, - "SyntaxNode": { - "Kind": "StringValue", - "Location": { - "Start": 227, - "End": 233, - "Line": 9, - "Column": 41 - }, - "Value": "123", - "Block": false - } + "Exception": null } ] diff --git a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/VariablesAreInputTypesRuleTests.QueriesWithInvalidVariableTypes.snap b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/VariablesAreInputTypesRuleTests.QueriesWithInvalidVariableTypes.snap index ac5c6a4ba3f..4dd6692cd93 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/VariablesAreInputTypesRuleTests.QueriesWithInvalidVariableTypes.snap +++ b/src/HotChocolate/Core/test/Validation.Tests/__snapshots__/VariablesAreInputTypesRuleTests.QueriesWithInvalidVariableTypes.snap @@ -14,56 +14,7 @@ "variableType": "Cat", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 32, - "End": 42, - "Line": 2, - "Column": 32 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 32, - "End": 37, - "Line": 2, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 37, - "Line": 2, - "Column": 33 - }, - "Value": "cat" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Value": "Cat" - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: cat.", @@ -78,89 +29,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 17, - "End": 111, - "Line": 2, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 23, - "End": 32, - "Line": 2, - "Column": 23 - }, - "Value": "takesCat" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 32, - "End": 42, - "Line": 2, - "Column": 32 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 32, - "End": 37, - "Line": 2, - "Column": 32 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 33, - "End": 37, - "Line": 2, - "Column": 33 - }, - "Value": "cat" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 38, - "End": 42, - "Line": 2, - "Column": 38 - }, - "Value": "Cat" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 43, - "End": 111, - "Line": 2, - "Column": 43 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "The type of variable `dog` is not an input type.", @@ -177,65 +46,7 @@ "variableType": "Dog!", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 125, - "End": 136, - "Line": 6, - "Column": 36 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 125, - "End": 130, - "Line": 6, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 126, - "End": 130, - "Line": 6, - "Column": 37 - }, - "Value": "dog" - } - }, - "Type": { - "Kind": "NonNullType", - "Location": { - "Start": 134, - "End": 136, - "Line": 6, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Value": "Dog" - } - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: dog.", @@ -250,98 +61,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 106, - "End": 205, - "Line": 6, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 112, - "End": 125, - "Line": 6, - "Column": 23 - }, - "Value": "takesDogBang" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 125, - "End": 136, - "Line": 6, - "Column": 36 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 125, - "End": 130, - "Line": 6, - "Column": 36 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 126, - "End": 130, - "Line": 6, - "Column": 37 - }, - "Value": "dog" - } - }, - "Type": { - "Kind": "NonNullType", - "Location": { - "Start": 134, - "End": 136, - "Line": 6, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 131, - "End": 135, - "Line": 6, - "Column": 42 - }, - "Value": "Dog" - } - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 137, - "End": 205, - "Line": 6, - "Column": 48 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "The type of variable `pets` is not an input type.", @@ -358,65 +78,7 @@ "variableType": "[Pet]", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 221, - "End": 234, - "Line": 10, - "Column": 38 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 221, - "End": 227, - "Line": 10, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 222, - "End": 227, - "Line": 10, - "Column": 39 - }, - "Value": "pets" - } - }, - "Type": { - "Kind": "ListType", - "Location": { - "Start": 228, - "End": 234, - "Line": 10, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Value": "Pet" - } - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: pets.", @@ -431,98 +93,7 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 200, - "End": 303, - "Line": 10, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 206, - "End": 221, - "Line": 10, - "Column": 23 - }, - "Value": "takesListOfPet" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 221, - "End": 234, - "Line": 10, - "Column": 38 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 221, - "End": 227, - "Line": 10, - "Column": 38 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 222, - "End": 227, - "Line": 10, - "Column": 39 - }, - "Value": "pets" - } - }, - "Type": { - "Kind": "ListType", - "Location": { - "Start": 228, - "End": 234, - "Line": 10, - "Column": 45 - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 229, - "End": 233, - "Line": 10, - "Column": 46 - }, - "Value": "Pet" - } - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 235, - "End": 303, - "Line": 10, - "Column": 52 - }, - "Selections": [] - } - } + "Exception": null }, { "Message": "The type of variable `catOrDog` is not an input type.", @@ -539,56 +110,7 @@ "variableType": "CatOrDog", "specifiedBy": "https://spec.graphql.org/October2021/#sec-Variables-Are-Input-Types" }, - "Exception": null, - "SyntaxNode": { - "Kind": "VariableDefinition", - "Location": { - "Start": 318, - "End": 338, - "Line": 14, - "Column": 37 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 318, - "End": 328, - "Line": 14, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 319, - "End": 328, - "Line": 14, - "Column": 38 - }, - "Value": "catOrDog" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Value": "CatOrDog" - } - }, - "DefaultValue": null, - "Directives": [] - } + "Exception": null }, { "Message": "The following variables were not used: catOrDog.", @@ -603,88 +125,6 @@ "Extensions": { "specifiedBy": "https://spec.graphql.org/October2021/#sec-All-Variables-Used" }, - "Exception": null, - "SyntaxNode": { - "Kind": "OperationDefinition", - "Location": { - "Start": 298, - "End": 397, - "Line": 14, - "Column": 17 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 304, - "End": 318, - "Line": 14, - "Column": 23 - }, - "Value": "takesCatOrDog" - }, - "Operation": "Query", - "VariableDefinitions": [ - { - "Kind": "VariableDefinition", - "Location": { - "Start": 318, - "End": 338, - "Line": 14, - "Column": 37 - }, - "Variable": { - "Kind": "Variable", - "Location": { - "Start": 318, - "End": 328, - "Line": 14, - "Column": 37 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 319, - "End": 328, - "Line": 14, - "Column": 38 - }, - "Value": "catOrDog" - } - }, - "Type": { - "Kind": "NamedType", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Name": { - "Kind": "Name", - "Location": { - "Start": 329, - "End": 338, - "Line": 14, - "Column": 48 - }, - "Value": "CatOrDog" - } - }, - "DefaultValue": null, - "Directives": [] - } - ], - "Directives": [], - "SelectionSet": { - "Kind": "SelectionSet", - "Location": { - "Start": 339, - "End": 397, - "Line": 14, - "Column": 58 - }, - "Selections": [] - } - } + "Exception": null } ] diff --git a/src/HotChocolate/Data/src/AutoMapper/AutoMapperQueryableExtensions.cs b/src/HotChocolate/Data/src/AutoMapper/AutoMapperQueryableExtensions.cs index 283c8c1eebb..8b126d29686 100644 --- a/src/HotChocolate/Data/src/AutoMapper/AutoMapperQueryableExtensions.cs +++ b/src/HotChocolate/Data/src/AutoMapper/AutoMapperQueryableExtensions.cs @@ -26,7 +26,7 @@ public static IQueryable ProjectTo( this IQueryable queryable, IResolverContext context) { - IMapper mapper = context.Service(); + var mapper = context.Service(); // ensure projections are only applied once context.LocalContextData = context.LocalContextData.SetItem(SkipProjectionKey, true); diff --git a/src/HotChocolate/Data/src/Data/ErrorHelper.cs b/src/HotChocolate/Data/src/Data/ErrorHelper.cs index 62963da9c54..fba29925c31 100644 --- a/src/HotChocolate/Data/src/Data/ErrorHelper.cs +++ b/src/HotChocolate/Data/src/Data/ErrorHelper.cs @@ -28,7 +28,7 @@ public static IError CreateNonNullError( DataResources.ErrorHelper_CreateNonNullError, context.Operations.Peek().Name, filterType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetCode(ErrorCodes.Data.NonNullError) .SetExtension("expectedType", field.Type.RewriteNullability(nullability).Print()) .SetExtension("filterType", filterType.Print()) @@ -41,7 +41,7 @@ public static IError SortingVisitor_ListValues(ISortField field, ListValueNode n DataResources.SortingVisitor_ListInput_AreNotSuported, field.DeclaringType.Name, field.Name) - .AddLocation(node) + .AddLocation([node]) .SetCode(ErrorCodes.Data.ListNotSupported) .SetExtension(nameof(field), field) .Build(); @@ -58,7 +58,7 @@ public static IError CreateNonNullError( DataResources.ErrorHelper_CreateNonNullError, context.Fields.Peek().Name, sortType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetCode(ErrorCodes.Data.NonNullError) .SetExtension("expectedType", new NonNullType(field.Type).Print()) .SetExtension("sortType", sortType.Print()) @@ -82,7 +82,7 @@ public static IError ProjectionProvider_CreateMoreThanOneError(IResolverContext .SetMessage(DataResources.ProjectionProvider_CreateMoreThanOneError) .SetCode(ErrorCodes.Data.MoreThanOneElement) .SetPath(context.Path) - .AddLocation(context.Selection.SyntaxNode) + .AddLocation([context.Selection.SyntaxNode]) .Build(); public static IError ProjectionProvider_CreateMoreThanOneError() => @@ -94,7 +94,7 @@ public static IError ProjectionProvider_CreateMoreThanOneError() => public static IError ProjectionProvider_CouldNotProjectFiltering(IValueNode node) => ErrorBuilder.New() .SetMessage(DataResources.ProjectionProvider_CouldNotProjectFiltering) - .AddLocation(node) + .AddLocation([node]) .SetCode(ErrorCodes.Data.FilteringProjectionFailed) .Build(); @@ -102,7 +102,7 @@ public static IError ProjectionProvider_CouldNotProjectSorting(IValueNode node) ErrorBuilder.New() .SetMessage(DataResources.ProjectionProvider_CouldNotProjectSorting) .SetCode(ErrorCodes.Data.SortingProjectionFailed) - .AddLocation(node) + .AddLocation([node]) .Build(); public static IError ProjectionVisitor_NodeFieldWasNotFound(IPageType pageType) => diff --git a/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs b/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs index 17b028fe4fa..98dd94d027f 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs @@ -16,8 +16,8 @@ public Selection RewriteSelection( Selection selection) { if (!(context.Type is ObjectType type && - type.ContextData.TryGetValue(AlwaysProjectedFieldsKey, out var fieldsObj) && - fieldsObj is string[] fields)) + type.ContextData.TryGetValue(AlwaysProjectedFieldsKey, out var fieldsObj) && + fieldsObj is string[] fields)) { return selection; } diff --git a/src/HotChocolate/Data/src/Data/Projections/ProjectionVisitor.cs b/src/HotChocolate/Data/src/Data/Projections/ProjectionVisitor.cs index bc58d00b1fc..3ac9ddf116b 100644 --- a/src/HotChocolate/Data/src/Data/Projections/ProjectionVisitor.cs +++ b/src/HotChocolate/Data/src/Data/Projections/ProjectionVisitor.cs @@ -128,8 +128,7 @@ protected override ISelectionVisitorAction Visit(IOutputField field, TContext co if (field.Type is IPageType and ObjectType pageType && context.Selection.Peek() is { } pagingFieldSelection) { - var selections = - context.ResolverContext.GetSelections(pageType, pagingFieldSelection, true); + var selections = context.ResolverContext.GetSelections(pageType, pagingFieldSelection, true); for (var index = selections.Count - 1; index >= 0; index--) { diff --git a/src/HotChocolate/Data/src/Data/Projections/SelectionVisitorContext.cs b/src/HotChocolate/Data/src/Data/Projections/SelectionVisitorContext.cs index 9e42b09f8cc..1463133aab9 100644 --- a/src/HotChocolate/Data/src/Data/Projections/SelectionVisitorContext.cs +++ b/src/HotChocolate/Data/src/Data/Projections/SelectionVisitorContext.cs @@ -5,21 +5,13 @@ namespace HotChocolate.Data.Projections; -public class SelectionVisitorContext : ISelectionVisitorContext +public class SelectionVisitorContext(IResolverContext context) : ISelectionVisitorContext { - public SelectionVisitorContext(IResolverContext context) - { - Selection = new Stack(); - SelectionSetNodes = new Stack(); - ResolvedType = new Stack(); - ResolverContext = context; - } + public Stack Selection { get; } = new(); - public Stack Selection { get; } + public Stack SelectionSetNodes { get; } = new(); - public Stack SelectionSetNodes { get; } + public Stack ResolvedType { get; } = new(); - public Stack ResolvedType { get; } - - public IResolverContext ResolverContext { get; } + public IResolverContext ResolverContext { get; } = context; } diff --git a/src/HotChocolate/Data/src/Data/ThrowHelper.cs b/src/HotChocolate/Data/src/Data/ThrowHelper.cs index 684b7141792..e72559cecba 100644 --- a/src/HotChocolate/Data/src/Data/ThrowHelper.cs +++ b/src/HotChocolate/Data/src/Data/ThrowHelper.cs @@ -121,7 +121,7 @@ public static GraphQLException FilterConvention_CouldNotConvertValue(IValueNode new GraphQLException( ErrorBuilder.New() .SetMessage(DataResources.FilterConvention_CouldNotConvertValue) - .AddLocation(node) + .AddLocation([node]) .Build()); public static SchemaException FilterObjectFieldDescriptorExtensions_CannotInfer() => diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/TestContext/Product.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/TestContext/Product.cs index 1dedbd0edcf..7cbda2ec229 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/TestContext/Product.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/TestContext/Product.cs @@ -83,7 +83,7 @@ public int RemoveStock(int quantityDesired) /// public int AddStock(int quantity) { - int original = AvailableStock; + var original = AvailableStock; // The quantity that the client is trying to add to stock is greater than what can be physically accommodated in the Warehouse if ((AvailableStock + quantity) > MaxStockThreshold) diff --git a/src/HotChocolate/Fusion/src/CommandLine/Helpers/PackageHelper.cs b/src/HotChocolate/Fusion/src/CommandLine/Helpers/PackageHelper.cs index 89a4d4aaacb..d0770931f59 100644 --- a/src/HotChocolate/Fusion/src/CommandLine/Helpers/PackageHelper.cs +++ b/src/HotChocolate/Fusion/src/CommandLine/Helpers/PackageHelper.cs @@ -82,7 +82,7 @@ public static async Task CreateSubgraphPackageAsync( extensions.Add(Utf8GraphQLParser.Parse(extension)); } - using Package package = Package.Open(stream, FileMode.Create); + using var package = Package.Open(stream, FileMode.Create); await AddSchemaToPackageAsync(package, schema); await AddTransportConfigToPackage(package, transportConfig); await AddSchemaExtensionsToPackage(package, extensions); diff --git a/src/HotChocolate/Fusion/src/Core/Execution/ExecutionState.cs b/src/HotChocolate/Fusion/src/Core/Execution/ExecutionState.cs index 1e1c4ac677e..83880f98932 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/ExecutionState.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/ExecutionState.cs @@ -33,7 +33,7 @@ public ExecutionState( /// required to fetch data for the associated . /// public IReadOnlyList Requires { get; } - + /// /// Gets the selection set that is being executed. /// diff --git a/src/HotChocolate/Fusion/src/Core/Execution/ExecutorUtils.cs b/src/HotChocolate/Fusion/src/Core/Execution/ExecutionUtils.cs similarity index 98% rename from src/HotChocolate/Fusion/src/Core/Execution/ExecutorUtils.cs rename to src/HotChocolate/Fusion/src/Core/Execution/ExecutionUtils.cs index 9bbaa6a9ad3..c0e7b6116f7 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/ExecutorUtils.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/ExecutionUtils.cs @@ -14,7 +14,7 @@ namespace HotChocolate.Fusion.Execution; -internal static class ExecutorUtils +internal static class ExecutionUtils { private const CustomOptionsFlags _reEncodeIdFlag = (CustomOptionsFlags)ObjectFieldFlags.ReEncodeId; @@ -43,6 +43,7 @@ private static void ComposeResult( return; } + var includeFlags = context.OperationContext.IncludeFlags; var count = selectionSet.Selections.Count; ref var selection = ref selectionSet.GetSelectionsReference(); ref var result = ref selectionSetResult.GetReference(); @@ -56,6 +57,11 @@ private static void ComposeResult( var responseName = selection.ResponseName; var field = selection.Field; + if (selection.IsConditional && !selection.IsIncluded(includeFlags)) + { + goto NEXT_SELECTION; + } + if (!field.IsIntrospectionField) { var nullable = selection.TypeKind is not TypeKind.NonNull; @@ -166,6 +172,7 @@ private static void ComposeResult( responseIndex++; // move our pointers + NEXT_SELECTION: selection = ref Unsafe.Add(ref selection, 1)!; result = ref Unsafe.Add(ref result, 1)!; data = ref Unsafe.Add(ref data, 1); diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Compose.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Compose.cs index f74c231e17f..208110c75b4 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Compose.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Compose.cs @@ -2,7 +2,7 @@ using System.Runtime.InteropServices; using System.Text.Json; using HotChocolate.Execution.Processing; -using static HotChocolate.Fusion.Execution.ExecutorUtils; +using static HotChocolate.Fusion.Execution.ExecutionUtils; using static HotChocolate.Fusion.Utilities.Utf8QueryPlanPropertyNames; namespace HotChocolate.Fusion.Execution.Nodes; diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Introspect.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Introspect.cs index 130e60f3fc5..40c4140e52e 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Introspect.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Introspect.cs @@ -46,7 +46,7 @@ protected override async Task OnExecuteAsync( RequestState state, CancellationToken cancellationToken) { - if (state.TryGetState(_selectionSet, out List? values)) + if (state.TryGetState(_selectionSet, out var values)) { var value = values[0]; List? asyncTasks = null; diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Resolve.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Resolve.cs index 38e1013ddb8..5109ae6450f 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Resolve.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Resolve.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HotChocolate.Fusion.Clients; -using static HotChocolate.Fusion.Execution.ExecutorUtils; +using static HotChocolate.Fusion.Execution.ExecutionUtils; using static HotChocolate.Fusion.Execution.Nodes.ResolverNodeBase; namespace HotChocolate.Fusion.Execution.Nodes; @@ -39,6 +39,11 @@ protected override async Task OnExecuteAsync( RequestState state, CancellationToken cancellationToken) { + if (CanBeSkipped(context)) + { + return; + } + if (!state.TryGetState(SelectionSet, out var executionState)) { return; diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolveByKeyBatch.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolveByKeyBatch.cs index 91aa5ed1d5b..8417d650a91 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolveByKeyBatch.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolveByKeyBatch.cs @@ -5,7 +5,7 @@ using HotChocolate.Execution.Processing; using HotChocolate.Fusion.Clients; using HotChocolate.Language; -using static HotChocolate.Fusion.Execution.ExecutorUtils; +using static HotChocolate.Fusion.Execution.ExecutionUtils; namespace HotChocolate.Fusion.Execution.Nodes; @@ -58,6 +58,11 @@ protected override async Task OnExecuteAsync( RequestState state, CancellationToken cancellationToken) { + if (CanBeSkipped(context)) + { + return; + } + if (!state.TryGetState(SelectionSet, out var executionState)) { return; diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.Config.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.Config.cs index bccecc5ef27..ade382b0606 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.Config.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.Config.cs @@ -15,7 +15,7 @@ internal abstract partial class ResolverNodeBase internal readonly ref struct Config { private readonly bool _isInitialized; - + /// /// Initializes a new instance of . /// @@ -25,6 +25,9 @@ internal readonly ref struct Config /// /// The GraphQL request document. /// + /// + /// The selection from which the selection set was composed. + /// /// /// The selection set for which this request provides a patch. /// @@ -46,6 +49,7 @@ internal readonly ref struct Config public Config( string subgraphName, DocumentNode document, + ISelection? parent, ISelectionSet selectionSet, IEnumerable provides, IEnumerable requires, @@ -58,6 +62,7 @@ public Config( SubgraphName = subgraphName; Document = document.ToString(false); + Parent = parent; SelectionSet = Unsafe.As(selectionSet); Provides = CollectionUtils.CopyToArray(provides, ref buffer, ref usedCapacity); Requires = CollectionUtils.CopyToArray(requires, ref buffer, ref usedCapacity); @@ -84,6 +89,11 @@ public Config( /// public string Document { get; } + /// + /// Gets the parent selection from which the selection set was composed. + /// + public ISelection? Parent { get; } + /// /// Gets the selection set for which this request provides a patch. /// diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.cs index 86ebd4c1294..b1dfb8e6531 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/ResolverNodeBase.cs @@ -18,6 +18,7 @@ internal abstract partial class ResolverNodeBase : QueryPlanNode { private readonly string _subgraphName; private readonly string _document; + private readonly ISelection? _parent; private readonly SelectionSet _selectionSet; private readonly string[] _provides; private readonly string[] _requires; @@ -41,6 +42,7 @@ protected ResolverNodeBase(int id, Config config) config.ThrowIfNotInitialized(); _subgraphName = config.SubgraphName; _document = config.Document; + _parent = config.Parent; _selectionSet = config.SelectionSet; _provides = config.Provides; _requires = config.Requires; @@ -55,6 +57,11 @@ protected ResolverNodeBase(int id, Config config) /// protected string SubgraphName => _subgraphName; + /// + /// Gets the parent selection from which the selection set was composed. + /// + protected ISelection? Parent => _parent; + /// /// Gets the selection set for which data is being resolved. /// @@ -135,6 +142,51 @@ protected SubgraphGraphQLRequest CreateRequest( return new SubgraphGraphQLRequest(_subgraphName, _document, vars, null, _transportFeatures); } + protected bool CanBeSkipped(FusionExecutionContext context) + { + // TODO : we should do an initial traversal of the query plan. For now we just include it when there is a provides. + // if we need to provide data for other execution node we need to execute. + if (_provides.Length > 0) + { + return false; + } + + // if the parent selection is skipped we do not need to execute this node + // as all child selection are also skipped. + if (Parent is { IsConditional: true } parent && + !parent.IsIncluded(context.OperationContext.IncludeFlags)) + { + return true; + } + + // if the selection set is not conditional (has no conditional selections) + // we need to execute this node as all selections are required for the result. + if (!SelectionSet.IsConditional) + { + return false; + } + + // if the selection set is condition we need to check if at least one selection is included + // for execution or if all are skipped. + // We can only skip this node if all selections are skipped. + ref var start = ref SelectionSet.GetSelectionsReference(); + ref var end = ref Unsafe.Add(ref start, SelectionSet.Selections.Count); + + while(Unsafe.IsAddressLessThan(ref start, ref end)) + { + if(start.IsIncluded(context.OperationContext.IncludeFlags)) + { + // we found a selection that is included so we need to execute this node. + return false; + } + + start = ref Unsafe.Add(ref start, 1)!; + } + + // all selections are skipped so we can skip this node. + return true; + } + /// /// Unwraps the result from the GraphQL response that is needed by this query plan node. /// diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Subscribe.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Subscribe.cs index e3a261ed9e0..a5a342ac99a 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Subscribe.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Subscribe.cs @@ -6,7 +6,7 @@ using HotChocolate.Execution.Serialization; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; -using static HotChocolate.Fusion.Execution.ExecutorUtils; +using static HotChocolate.Fusion.Execution.ExecutionUtils; using static HotChocolate.Fusion.Execution.Nodes.ResolverNodeBase; using static HotChocolate.WellKnownContextData; diff --git a/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/ExecutionNodeBuilderMiddleware.cs b/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/ExecutionNodeBuilderMiddleware.cs index c97c7702630..e9da33a335e 100644 --- a/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/ExecutionNodeBuilderMiddleware.cs +++ b/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/ExecutionNodeBuilderMiddleware.cs @@ -136,6 +136,7 @@ private Resolve CreateResolveNode( var config = new ResolverNodeBase.Config( executionStep.SubgraphName, request.Document, + executionStep.ParentSelection, selectionSet, context.Exports.GetExportKeys(executionStep), executionStep.Variables.Values, @@ -215,6 +216,7 @@ private Resolve CreateResolveNodeNode( var config = new ResolverNodeBase.Config( executionStep.SelectEntityStep.SubgraphName, requestDocument, + executionStep.ParentSelection, selectionSet, context.Exports.GetExportKeys(executionStep), executionStep.SelectEntityStep.Variables.Values, @@ -257,6 +259,7 @@ private ResolveByKeyBatch CreateResolveByKeyBatchNode( var config = new ResolverNodeBase.Config( executionStep.SubgraphName, request.Document, + executionStep.ParentSelection, selectionSet, context.Exports.GetExportKeys(executionStep), executionStep.Variables.Values, @@ -283,6 +286,7 @@ private Subscribe CreateSubscribeNode( var config = new ResolverNodeBase.Config( executionStep.SubgraphName, request.Document, + executionStep.ParentSelection, selectionSet, context.Exports.GetExportKeys(executionStep), executionStep.Variables.Values, diff --git a/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/RequirementsPlannerMiddleware.cs b/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/RequirementsPlannerMiddleware.cs index 3baaf45eabb..ac91a722943 100644 --- a/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/RequirementsPlannerMiddleware.cs +++ b/src/HotChocolate/Fusion/src/Core/Planning/Pipeline/RequirementsPlannerMiddleware.cs @@ -28,155 +28,155 @@ private static void Plan(QueryPlanContext context) foreach (var step in context.Steps) { - if (step is SelectionExecutionStep currentStep && - currentStep.ParentSelection is { } parent && - currentStep.Resolver is not null) + if (step is not SelectionExecutionStep { ParentSelection: { } parent, Resolver: not null } currentStep) { - siblingsToRemove.Clear(); - roots.Clear(); + continue; + } + + siblingsToRemove.Clear(); + roots.Clear(); - var declaringType = currentStep.SelectionSetType; - var selectionSet = context.Operation.GetSelectionSet(parent, declaringType); - var siblingExecutionSteps = context.GetSiblingExecutionSteps(selectionSet); + var declaringType = currentStep.SelectionSetType; + var selectionSet = context.Operation.GetSelectionSet(parent, declaringType); + var siblingExecutionSteps = context.GetSiblingExecutionSteps(selectionSet); - // remove the execution step for which we try to resolve dependencies. - siblingExecutionSteps.Remove(currentStep); + // remove the execution step for which we try to resolve dependencies. + siblingExecutionSteps.Remove(currentStep); - // remove all execution steps that depend on the current execution step. - foreach (var siblingExecutionStep in siblingExecutionSteps) + // remove all execution steps that depend on the current execution step. + foreach (var siblingExecutionStep in siblingExecutionSteps) + { + if (siblingExecutionStep.DependsOn.Contains(currentStep)) { - if (siblingExecutionStep.DependsOn.Contains(currentStep)) - { - siblingsToRemove.Add(siblingExecutionStep); - } + siblingsToRemove.Add(siblingExecutionStep); } + } - foreach (var siblingToRemove in siblingsToRemove) + foreach (var siblingToRemove in siblingsToRemove) + { + siblingExecutionSteps.Remove(siblingToRemove); + } + + // clean and fill the schema execution step lookup + foreach (var siblingExecutionStep in siblingExecutionSteps) + { + if (siblingExecutionStep.ParentSelection is null) { - siblingExecutionSteps.Remove(siblingToRemove); + roots.Add(siblingExecutionStep.SubgraphName); } - // clean and fill the schema execution step lookup - foreach (var siblingExecutionStep in siblingExecutionSteps) - { - if (siblingExecutionStep.ParentSelection is null) - { - roots.Add(siblingExecutionStep.SubgraphName); - } + // Tracks the most recent execution step (by query plan step order) targeting a given subgraph + // Replacing a previous execution step if necessary. + schemas[siblingExecutionStep.SubgraphName] = siblingExecutionStep; + } - // Tracks the most recent execution step (by query plan step order) targeting a given subgraph - // Replacing a previous execution step if necessary. - schemas[siblingExecutionStep.SubgraphName] = siblingExecutionStep; + // clean and fill requires set + InitializeSet(requires, currentStep.Requires); + + // first we need to check if the selectionSet from which we want to do the + // exports already is exporting the required variables + // if so we just need to refer to it. + foreach (var requirement in requires) + { + if (context.Exports.TryGetStateKey( + selectionSet, + requirement, + out var stateKey, + out var providingExecutionStep) && + providingExecutionStep != currentStep) + { + currentStep.DependsOn.Add(providingExecutionStep); + currentStep.Variables.TryAdd(requirement, stateKey); + requires.Remove(requirement); } + } - // clean and fill requires set - InitializeSet(requires, currentStep.Requires); + // if we still have requirements unfulfilled, we will try to resolve them + // from sibling execution steps. + // we prime the variables list with the variables from execution steps that the current step + // already depends on. + var variables = OrderByUsage(step.SelectionSetTypeMetadata.Variables, currentStep); - // first we need to check if the selectionSet from which we want to do the - // exports already is exporting the required variables - // if so we just need to refer to it. - foreach (var requirement in requires) + // if we have root steps as siblings we will prefer to fulfill the requirements + // from these steps. + if (roots.Count > 0 && requires.Count > 0) + { + foreach (var variable in variables) { - if (context.Exports.TryGetStateKey( - selectionSet, - requirement, - out var stateKey, - out var providingExecutionStep) && - providingExecutionStep != currentStep) + if (requires.Contains(variable.Name) && + roots.Contains(variable.SubgraphName) && + schemas.TryGetValue(variable.SubgraphName, out var providingExecutionStep)) { + requires.Remove(variable.Name); + + var stateKey = context.Exports.Register( + selectionSet, + variable, + providingExecutionStep); + currentStep.DependsOn.Add(providingExecutionStep); - currentStep.Variables.TryAdd(requirement, stateKey); - requires.Remove(requirement); + currentStep.Variables.TryAdd(variable.Name, stateKey); } - } - - // if we still have requirements unfulfilled, we will try to resolve them - // from sibling execution steps. - // we prime the variables list with the variables from execution steps that the current step - // already depends on. - var variables = OrderByUsage(step.SelectionSetTypeMetadata.Variables, currentStep); - // if we have root steps as siblings we will prefer to fulfill the requirements - // from these steps. - if (roots.Count > 0 && requires.Count > 0) - { - foreach (var variable in variables) + if (requires.Count == 0) { - if (requires.Contains(variable.Name) && - roots.Contains(variable.SubgraphName) && - schemas.TryGetValue(variable.SubgraphName, out var providingExecutionStep)) - { - requires.Remove(variable.Name); - - var stateKey = context.Exports.Register( - selectionSet, - variable, - providingExecutionStep); - - currentStep.DependsOn.Add(providingExecutionStep); - currentStep.Variables.TryAdd(variable.Name, stateKey); - } - - if (requires.Count == 0) - { - break; - } + break; } } + } - if (requires.Count > 0) + if (requires.Count > 0) + { + foreach (var variable in variables) { - foreach (var variable in variables) + if (requires.Contains(variable.Name) && + schemas.TryGetValue(variable.SubgraphName, out var providingExecutionStep)) { - if (requires.Contains(variable.Name) && - schemas.TryGetValue(variable.SubgraphName, out var providingExecutionStep)) - { - requires.Remove(variable.Name); - - var stateKey = context.Exports.Register( - selectionSet, - variable, - providingExecutionStep); - - currentStep.DependsOn.Add(providingExecutionStep); - currentStep.Variables.TryAdd(variable.Name, stateKey); - } - - if (requires.Count == 0) - { - break; - } + requires.Remove(variable.Name); + + var stateKey = context.Exports.Register( + selectionSet, + variable, + providingExecutionStep); + + currentStep.DependsOn.Add(providingExecutionStep); + currentStep.Variables.TryAdd(variable.Name, stateKey); } - } - // it could happen that the existing execution steps cannot fulfill our needs - // and that we have to introduce a fetch to another remote schema to get the - // required value for the current execution step. In this case we will have - // to evaluate the schemas that we did skip for efficiency reasons. - if (requires.Count > 0) - { - // if the schema meta data are not consistent we could end up with no way to - // execute the current execution step. In this case we will fail here. - throw new InvalidOperationException("The schema metadata are not consistent."); + if (requires.Count == 0) + { + break; + } } + } - foreach (var (name, type) in currentStep.Resolver.ArgumentTypes) - { - currentStep.ArgumentTypes.TryAdd(name, type); - } + // it could happen that the existing execution steps cannot fulfill our needs + // and that we have to introduce a fetch to another remote schema to get the + // required value for the current execution step. In this case we will have + // to evaluate the schemas that we did skip for efficiency reasons. + if (requires.Count > 0) + { + // if the schema meta data are not consistent we could end up with no way to + // execute the current execution step. In this case we will fail here. + throw new InvalidOperationException("The schema metadata are not consistent."); + } - // if we do by key batching the current execution step must - // re-export its requirements so we know where entities belong to. - if (currentStep.Resolver.Kind is ResolverKind.Batch) + foreach (var (name, type) in currentStep.Resolver.ArgumentTypes) + { + currentStep.ArgumentTypes.TryAdd(name, type); + } + + // if we do by key batching the current execution step must + // re-export its requirements so we know where entities belong to. + if (currentStep.Resolver.Kind is ResolverKind.Batch) + { + foreach (var variable in step.SelectionSetTypeMetadata.Variables) { - foreach (var variable in step.SelectionSetTypeMetadata.Variables) + if (currentStep.Requires.Contains(variable.Name) && + currentStep.SubgraphName.EqualsOrdinal(variable.SubgraphName) && + currentStep.Variables.TryGetValue(variable.Name, out var stateKey)) { - if (currentStep.Requires.Contains(variable.Name) && - currentStep.SubgraphName.EqualsOrdinal(variable.SubgraphName) && - currentStep.Variables.TryGetValue(variable.Name, out var stateKey)) - { - context.Exports.RegisterAdditionExport(variable, currentStep, stateKey); - } + context.Exports.RegisterAdditionExport(variable, currentStep, stateKey); } } } diff --git a/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/NodeRequestDocumentFormatter.cs b/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/NodeRequestDocumentFormatter.cs index b8d87275c8a..9f9792f65f9 100644 --- a/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/NodeRequestDocumentFormatter.cs +++ b/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/NodeRequestDocumentFormatter.cs @@ -188,12 +188,12 @@ protected override bool CreateSelectionNodes( onlyIntrospection = false; } - selectionNodes.Add( - CreateSelectionNode( - context, - executionStep, - selection, - typeContext.Fields[selection.Field.Name])); + AddSelectionNode( + context, + executionStep, + selection, + typeContext.Fields[selection.Field.Name], + selectionNodes); if (!selection.Arguments.IsFullyCoercedNoErrors) { diff --git a/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/RequestDocumentFormatter.cs b/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/RequestDocumentFormatter.cs index 7e0f91df47e..56a9b04ba3f 100644 --- a/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/RequestDocumentFormatter.cs +++ b/src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/RequestDocumentFormatter.cs @@ -12,7 +12,7 @@ namespace HotChocolate.Fusion.Planning; -internal abstract class RequestDocumentFormatter +internal abstract class RequestDocumentFormatter(FusionGraphConfiguration configuration) { protected static readonly FieldNode TypeNameField = new( null, @@ -23,12 +23,8 @@ internal abstract class RequestDocumentFormatter Array.Empty(), null); - private readonly FusionGraphConfiguration _config; - - protected RequestDocumentFormatter(FusionGraphConfiguration configuration) - { - _config = configuration ?? throw new ArgumentNullException(nameof(configuration)); - } + private readonly FusionGraphConfiguration _config = configuration ?? + throw new ArgumentNullException(nameof(configuration)); protected FusionGraphConfiguration Configuration => _config; @@ -109,6 +105,7 @@ protected virtual SelectionSetNode CreateRootSelectionSetNode( SelectionExecutionStep executionStep) { var selectionNodes = new List(); + var rootNodes = new List(); var selectionSet = context.Operation.GetSelectionSet(executionStep); var selectionSetType = executionStep.SelectionSetTypeMetadata; Debug.Assert(selectionSet is not null); @@ -121,12 +118,9 @@ protected virtual SelectionSetNode CreateRootSelectionSetNode( if (rootSelection.Resolver is null) { - selectionNode = - CreateSelectionNode( - context, - executionStep, - rootSelection.Selection, - field); + rootNodes.Clear(); + AddSelectionNode(context, executionStep, rootSelection.Selection, field, rootNodes); + selectionNode = rootNodes[0]; if (!rootSelection.Selection.Arguments.IsFullyCoercedNoErrors) { @@ -194,11 +188,12 @@ protected virtual SelectionSetNode CreateRootSelectionSetNode( return new SelectionSetNode(selectionNodes); } - protected virtual ISelectionNode CreateSelectionNode( + protected virtual void AddSelectionNode( QueryPlanContext context, SelectionExecutionStep executionStep, ISelection selection, - ObjectFieldInfo fieldInfo) + ObjectFieldInfo fieldInfo, + List selectionNodes) { SelectionSetNode? selectionSetNode = null; @@ -217,14 +212,38 @@ protected virtual ISelectionNode CreateSelectionNode( ? new NameNode(selection.ResponseName) : null; - return new FieldNode( - null, - new(binding.Name), - alias, - selection.SyntaxNode.Required, - Array.Empty(), // todo : not sure if we should pass down directives. - selection.SyntaxNode.Arguments, - selectionSetNode); + // TODO: this is not good but will fix the include issue ... + // we need to rework the operation compiler for a proper fix. + foreach (var node in selection.SyntaxNodes) + { + if(node.Directives.Count > 0) + { + foreach (var directive in node.Directives) + { + foreach (var argument in directive.Arguments) + { + if (argument.Value is not VariableNode variable) + { + continue; + } + + var originalVarDef = context.Operation.Definition.VariableDefinitions + .First(t => t.Variable.Equals(variable, SyntaxComparison.Syntax)); + context.ForwardedVariables.Add(originalVarDef); + } + } + } + + selectionNodes.Add( + new FieldNode( + null, + new(binding.Name), + alias, + node.Required, + node.Directives, + node.Arguments, + selectionSetNode)); + } } protected virtual SelectionSetNode CreateSelectionSetNode( @@ -274,16 +293,18 @@ protected virtual SelectionSetNode CreateSelectionSetNode( } } - if (!single) + if (single) { - if (needsTypeNameField) - { - selectionNodes.Add(TypeNameField); - needsTypeNameField = false; - } + continue; + } - AddInlineFragment(possibleType); + if (needsTypeNameField) + { + selectionNodes.Add(TypeNameField); + needsTypeNameField = false; } + + AddInlineFragment(possibleType); } return new SelectionSetNode(selectionNodes); @@ -331,12 +352,12 @@ protected virtual bool CreateSelectionNodes( onlyIntrospection = false; } - selectionNodes.Add( - CreateSelectionNode( - context, - executionStep, - selection, - typeContext.Fields[selection.Field.Name])); + AddSelectionNode( + context, + executionStep, + selection, + typeContext.Fields[selection.Field.Name], + selectionNodes); if (!selection.Arguments.IsFullyCoercedNoErrors) { diff --git a/src/HotChocolate/Fusion/src/Core/Utilities/ErrorHelper.cs b/src/HotChocolate/Fusion/src/Core/Utilities/ErrorHelper.cs index 7c73d3a6c49..33856adf59a 100644 --- a/src/HotChocolate/Fusion/src/Core/Utilities/ErrorHelper.cs +++ b/src/HotChocolate/Fusion/src/Core/Utilities/ErrorHelper.cs @@ -16,7 +16,7 @@ public static IError InvalidNodeFormat( Exception? exception = null) => ErrorBuilder.New() .SetMessage("The id value has an invalid format.") - .AddLocation(selection.SyntaxNode) + .AddLocation([selection.SyntaxNode]) .SetPath(new[] { selection.ResponseName, }) .SetException(exception) .Build(); diff --git a/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs index 8dfdacffc54..4d7bffd4cc4 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs @@ -104,6 +104,113 @@ query GetUser { Assert.Null(result.ExpectQueryResult().Errors); } + [Fact] + public async Task Authors_And_Reviews_Query_GetUserReviews_Skip_Author() + { + // arrange + using var demoProject = await DemoProject.CreateAsync(); + + // act + var fusionGraph = await new FusionGraphComposer(logFactory: _logFactory).ComposeAsync( + new[] + { + demoProject.Reviews2.ToConfiguration(Reviews2ExtensionSdl), + demoProject.Accounts.ToConfiguration(AccountsExtensionSdl), + }); + + var executor = await new ServiceCollection() + .AddSingleton(demoProject.HttpClientFactory) + .AddSingleton(demoProject.WebSocketConnectionFactory) + .AddFusionGatewayServer() + .ConfigureFromDocument(SchemaFormatter.FormatAsDocument(fusionGraph)) + .BuildRequestExecutorAsync(); + + var request = Parse( + """ + query GetUser($skip: Boolean!) { + users { + name + reviews { + body + author @skip(if: $skip) { + name + birthdate + } + } + } + } + """); + + // act + await using var result = await executor.ExecuteAsync( + QueryRequestBuilder + .New() + .SetVariableValue("skip", true) + .SetQuery(request) + .Create()); + + // assert + var snapshot = new Snapshot(); + CollectSnapshotData(snapshot, request, result, fusionGraph); + await snapshot.MatchMarkdownAsync(); + + Assert.Null(result.ExpectQueryResult().Errors); + } + + [Fact] + public async Task Authors_And_Reviews_Query_GetUserReviews_Skip_Author_ErrorField() + { + // arrange + using var demoProject = await DemoProject.CreateAsync(); + + // act + var fusionGraph = await new FusionGraphComposer(logFactory: _logFactory).ComposeAsync( + new[] + { + demoProject.Reviews2.ToConfiguration(Reviews2ExtensionSdl), + demoProject.Accounts.ToConfiguration(AccountsExtensionSdl), + }); + + var executor = await new ServiceCollection() + .AddSingleton(demoProject.HttpClientFactory) + .AddSingleton(demoProject.WebSocketConnectionFactory) + .AddFusionGatewayServer() + .ConfigureFromDocument(SchemaFormatter.FormatAsDocument(fusionGraph)) + .BuildRequestExecutorAsync(); + + var request = Parse( + """ + query GetUser($skip: Boolean!) { + users { + name + reviews { + body + author { + name + birthdate + errorField @skip(if: $skip) + } + } + } + } + """); + + // act + await using var result = await executor.ExecuteAsync( + QueryRequestBuilder + .New() + .SetVariableValue("skip", true) + .SetQuery(request) + .Create()); + + // assert + var snapshot = new Snapshot(); + CollectSnapshotData(snapshot, request, result, fusionGraph); + await snapshot.MatchMarkdownAsync(); + + Assert.Null(result.ExpectQueryResult().Errors); + } + [Fact] public async Task Authors_And_Reviews_Query_GetUserById() { diff --git a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Authors_And_Reviews_Query_GetUserReviews_Skip_Author.md b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Authors_And_Reviews_Query_GetUserReviews_Skip_Author.md new file mode 100644 index 00000000000..52f2377f160 --- /dev/null +++ b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Authors_And_Reviews_Query_GetUserReviews_Skip_Author.md @@ -0,0 +1,298 @@ +# Authors_And_Reviews_Query_GetUserReviews_Skip_Author + +## User Request + +```graphql +query GetUser($skip: Boolean!) { + users { + name + reviews { + body + author @skip(if: $skip) { + name + birthdate + } + } + } +} +``` + +## Result + +```json +{ + "data": { + "users": [ + { + "name": "Ada Lovelace", + "reviews": [ + { + "body": "Love it!" + }, + { + "body": "Could be better." + } + ] + }, + { + "name": "Alan Turing", + "reviews": [ + { + "body": "Too expensive." + }, + { + "body": "Prefer something else." + } + ] + } + ] + } +} +``` + +## QueryPlan + +```json +{ + "document": "query GetUser($skip: Boolean!) { users { name reviews { body author @skip(if: $skip) { name birthdate } } } }", + "operation": "GetUser", + "rootNode": { + "type": "Sequence", + "nodes": [ + { + "type": "Resolve", + "subgraph": "Accounts", + "document": "query GetUser_1 { users { name __fusion_exports__1: id } }", + "selectionSetId": 0, + "provides": [ + { + "variable": "__fusion_exports__1" + } + ] + }, + { + "type": "Compose", + "selectionSetIds": [ + 0 + ] + }, + { + "type": "ResolveByKeyBatch", + "subgraph": "Reviews2", + "document": "query GetUser_2($__fusion_exports__1: [ID!]!, $skip: Boolean!) { nodes(ids: $__fusion_exports__1) { ... on User { reviews { body author @skip(if: $skip) { name __fusion_exports__2: id } } __fusion_exports__1: id } } }", + "selectionSetId": 1, + "path": [ + "nodes" + ], + "requires": [ + { + "variable": "__fusion_exports__1" + } + ], + "provides": [ + { + "variable": "__fusion_exports__2" + } + ], + "forwardedVariables": [ + { + "variable": "skip" + } + ] + }, + { + "type": "Compose", + "selectionSetIds": [ + 1 + ] + }, + { + "type": "ResolveByKeyBatch", + "subgraph": "Accounts", + "document": "query GetUser_3($__fusion_exports__2: [ID!]!) { usersById(ids: $__fusion_exports__2) { birthdate __fusion_exports__2: id } }", + "selectionSetId": 3, + "path": [ + "usersById" + ], + "requires": [ + { + "variable": "__fusion_exports__2" + } + ] + }, + { + "type": "Compose", + "selectionSetIds": [ + 3 + ] + } + ] + }, + "state": { + "__fusion_exports__1": "User_id", + "__fusion_exports__2": "User_id" + } +} +``` + +## QueryPlan Hash + +```text +B1F750EE35FB23347DEC15FF5A9391D5EF5DB5EE +``` + +## Fusion Graph + +```graphql +schema + @fusion(version: 1) + @transport(subgraph: "Reviews2", location: "http:\/\/localhost:5000\/graphql", kind: "HTTP") + @transport(subgraph: "Reviews2", location: "ws:\/\/localhost:5000\/graphql", kind: "WebSocket") + @transport(subgraph: "Accounts", location: "http:\/\/localhost:5000\/graphql", kind: "HTTP") + @transport(subgraph: "Accounts", location: "ws:\/\/localhost:5000\/graphql", kind: "WebSocket") { + query: Query + mutation: Mutation + subscription: Subscription +} + +type Query { + errorField: String + @resolver(subgraph: "Accounts", select: "{ errorField }") + productById(id: ID!): Product + @variable(subgraph: "Reviews2", name: "id", argument: "id") + @resolver(subgraph: "Reviews2", select: "{ productById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + reviewById(id: ID!): Review + @variable(subgraph: "Reviews2", name: "id", argument: "id") + @resolver(subgraph: "Reviews2", select: "{ reviewById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + reviewOrAuthor: ReviewOrAuthor! + @resolver(subgraph: "Reviews2", select: "{ reviewOrAuthor }") + reviews: [Review!]! + @resolver(subgraph: "Reviews2", select: "{ reviews }") + userById(id: ID!): User + @variable(subgraph: "Reviews2", name: "id", argument: "id") + @resolver(subgraph: "Reviews2", select: "{ authorById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + @variable(subgraph: "Accounts", name: "id", argument: "id") + @resolver(subgraph: "Accounts", select: "{ userById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + users: [User!]! + @resolver(subgraph: "Accounts", select: "{ users }") + usersById(ids: [ID!]!): [User!]! + @variable(subgraph: "Accounts", name: "ids", argument: "ids") + @resolver(subgraph: "Accounts", select: "{ usersById(ids: $ids) }", arguments: [ { name: "ids", type: "[ID!]!" } ]) + viewer: Viewer! + @resolver(subgraph: "Reviews2", select: "{ viewer }") + @resolver(subgraph: "Accounts", select: "{ viewer }") +} + +type Mutation { + addReview(input: AddReviewInput!): AddReviewPayload! + @variable(subgraph: "Reviews2", name: "input", argument: "input") + @resolver(subgraph: "Reviews2", select: "{ addReview(input: $input) }", arguments: [ { name: "input", type: "AddReviewInput!" } ]) + addUser(input: AddUserInput!): AddUserPayload! + @variable(subgraph: "Accounts", name: "input", argument: "input") + @resolver(subgraph: "Accounts", select: "{ addUser(input: $input) }", arguments: [ { name: "input", type: "AddUserInput!" } ]) +} + +type Subscription { + onNewReview: Review! + @resolver(subgraph: "Reviews2", select: "{ onNewReview }", kind: "SUBSCRIBE") +} + +type AddReviewPayload { + review: Review + @source(subgraph: "Reviews2") +} + +type AddUserPayload { + user: User + @source(subgraph: "Accounts") +} + +type Product + @variable(subgraph: "Reviews2", name: "Product_id", select: "id") + @resolver(subgraph: "Reviews2", select: "{ productById(id: $Product_id) }", arguments: [ { name: "Product_id", type: "ID!" } ]) { + id: ID! + @source(subgraph: "Reviews2") + reviews: [Review!]! + @source(subgraph: "Reviews2") +} + +type Review implements Node + @variable(subgraph: "Reviews2", name: "Review_id", select: "id") + @resolver(subgraph: "Reviews2", select: "{ reviewById(id: $Review_id) }", arguments: [ { name: "Review_id", type: "ID!" } ]) + @resolver(subgraph: "Reviews2", select: "{ nodes(ids: $Review_id) { ... on Review { ... Review } } }", arguments: [ { name: "Review_id", type: "[ID!]!" } ], kind: "BATCH") { + author: User! + @source(subgraph: "Reviews2") + body: String! + @source(subgraph: "Reviews2") + errorField: String + @source(subgraph: "Reviews2") + id: ID! + @source(subgraph: "Reviews2") + product: Product! + @source(subgraph: "Reviews2") +} + +type SomeData { + accountValue: String! + @source(subgraph: "Accounts") + reviewsValue: String! + @source(subgraph: "Reviews2") +} + +"The user who wrote the review." +type User implements Node + @variable(subgraph: "Reviews2", name: "User_id", select: "id") + @variable(subgraph: "Accounts", name: "User_id", select: "id") + @resolver(subgraph: "Reviews2", select: "{ authorById(id: $User_id) }", arguments: [ { name: "User_id", type: "ID!" } ]) + @resolver(subgraph: "Accounts", select: "{ userById(id: $User_id) }", arguments: [ { name: "User_id", type: "ID!" } ]) + @resolver(subgraph: "Accounts", select: "{ usersById(ids: $User_id) }", arguments: [ { name: "User_id", type: "[ID!]!" } ], kind: "BATCH") + @resolver(subgraph: "Reviews2", select: "{ nodes(ids: $User_id) { ... on User { ... User } } }", arguments: [ { name: "User_id", type: "[ID!]!" } ], kind: "BATCH") { + birthdate: Date! + @source(subgraph: "Accounts") + errorField: String + @source(subgraph: "Accounts") + id: ID! + @source(subgraph: "Reviews2") + @source(subgraph: "Accounts") + name: String! + @source(subgraph: "Reviews2") + @source(subgraph: "Accounts") + reviews: [Review!]! + @source(subgraph: "Reviews2") + username: String! + @source(subgraph: "Accounts") +} + +type Viewer { + data: SomeData! + @source(subgraph: "Reviews2") + @source(subgraph: "Accounts") + latestReview: Review + @source(subgraph: "Reviews2") + user: User + @source(subgraph: "Accounts") +} + +"The node interface is implemented by entities that have a global unique identifier." +interface Node { + id: ID! +} + +union ReviewOrAuthor = User | Review + +input AddReviewInput { + authorId: Int! + body: String! + upc: Int! +} + +input AddUserInput { + birthdate: Date! + name: String! + username: String! +} + +"The `Date` scalar represents an ISO-8601 compliant date type." +scalar Date +``` + diff --git a/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Authors_And_Reviews_Query_GetUserReviews_Skip_Author_ErrorField.md b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Authors_And_Reviews_Query_GetUserReviews_Skip_Author_ErrorField.md new file mode 100644 index 00000000000..5b466a6985f --- /dev/null +++ b/src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Authors_And_Reviews_Query_GetUserReviews_Skip_Author_ErrorField.md @@ -0,0 +1,315 @@ +# Authors_And_Reviews_Query_GetUserReviews_Skip_Author_ErrorField + +## User Request + +```graphql +query GetUser($skip: Boolean!) { + users { + name + reviews { + body + author { + name + birthdate + errorField @skip(if: $skip) + } + } + } +} +``` + +## Result + +```json +{ + "data": { + "users": [ + { + "name": "Ada Lovelace", + "reviews": [ + { + "body": "Love it!", + "author": { + "name": "@ada", + "birthdate": "1815-12-10" + } + }, + { + "body": "Could be better.", + "author": { + "name": "@ada", + "birthdate": "1815-12-10" + } + } + ] + }, + { + "name": "Alan Turing", + "reviews": [ + { + "body": "Too expensive.", + "author": { + "name": "@alan", + "birthdate": "1912-06-23" + } + }, + { + "body": "Prefer something else.", + "author": { + "name": "@alan", + "birthdate": "1912-06-23" + } + } + ] + } + ] + } +} +``` + +## QueryPlan + +```json +{ + "document": "query GetUser($skip: Boolean!) { users { name reviews { body author { name birthdate errorField @skip(if: $skip) } } } }", + "operation": "GetUser", + "rootNode": { + "type": "Sequence", + "nodes": [ + { + "type": "Resolve", + "subgraph": "Accounts", + "document": "query GetUser_1 { users { name __fusion_exports__1: id } }", + "selectionSetId": 0, + "provides": [ + { + "variable": "__fusion_exports__1" + } + ] + }, + { + "type": "Compose", + "selectionSetIds": [ + 0 + ] + }, + { + "type": "ResolveByKeyBatch", + "subgraph": "Reviews2", + "document": "query GetUser_2($__fusion_exports__1: [ID!]!) { nodes(ids: $__fusion_exports__1) { ... on User { reviews { body author { name __fusion_exports__2: id } } __fusion_exports__1: id } } }", + "selectionSetId": 1, + "path": [ + "nodes" + ], + "requires": [ + { + "variable": "__fusion_exports__1" + } + ], + "provides": [ + { + "variable": "__fusion_exports__2" + } + ] + }, + { + "type": "Compose", + "selectionSetIds": [ + 1 + ] + }, + { + "type": "ResolveByKeyBatch", + "subgraph": "Accounts", + "document": "query GetUser_3($__fusion_exports__2: [ID!]!, $skip: Boolean!) { usersById(ids: $__fusion_exports__2) { birthdate errorField @skip(if: $skip) __fusion_exports__2: id } }", + "selectionSetId": 3, + "path": [ + "usersById" + ], + "requires": [ + { + "variable": "__fusion_exports__2" + } + ], + "forwardedVariables": [ + { + "variable": "skip" + } + ] + }, + { + "type": "Compose", + "selectionSetIds": [ + 3 + ] + } + ] + }, + "state": { + "__fusion_exports__1": "User_id", + "__fusion_exports__2": "User_id" + } +} +``` + +## QueryPlan Hash + +```text +D0E7D1201A7F70F2FE96F5DCD47EFD344C05E88F +``` + +## Fusion Graph + +```graphql +schema + @fusion(version: 1) + @transport(subgraph: "Reviews2", location: "http:\/\/localhost:5000\/graphql", kind: "HTTP") + @transport(subgraph: "Reviews2", location: "ws:\/\/localhost:5000\/graphql", kind: "WebSocket") + @transport(subgraph: "Accounts", location: "http:\/\/localhost:5000\/graphql", kind: "HTTP") + @transport(subgraph: "Accounts", location: "ws:\/\/localhost:5000\/graphql", kind: "WebSocket") { + query: Query + mutation: Mutation + subscription: Subscription +} + +type Query { + errorField: String + @resolver(subgraph: "Accounts", select: "{ errorField }") + productById(id: ID!): Product + @variable(subgraph: "Reviews2", name: "id", argument: "id") + @resolver(subgraph: "Reviews2", select: "{ productById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + reviewById(id: ID!): Review + @variable(subgraph: "Reviews2", name: "id", argument: "id") + @resolver(subgraph: "Reviews2", select: "{ reviewById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + reviewOrAuthor: ReviewOrAuthor! + @resolver(subgraph: "Reviews2", select: "{ reviewOrAuthor }") + reviews: [Review!]! + @resolver(subgraph: "Reviews2", select: "{ reviews }") + userById(id: ID!): User + @variable(subgraph: "Reviews2", name: "id", argument: "id") + @resolver(subgraph: "Reviews2", select: "{ authorById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + @variable(subgraph: "Accounts", name: "id", argument: "id") + @resolver(subgraph: "Accounts", select: "{ userById(id: $id) }", arguments: [ { name: "id", type: "ID!" } ]) + users: [User!]! + @resolver(subgraph: "Accounts", select: "{ users }") + usersById(ids: [ID!]!): [User!]! + @variable(subgraph: "Accounts", name: "ids", argument: "ids") + @resolver(subgraph: "Accounts", select: "{ usersById(ids: $ids) }", arguments: [ { name: "ids", type: "[ID!]!" } ]) + viewer: Viewer! + @resolver(subgraph: "Reviews2", select: "{ viewer }") + @resolver(subgraph: "Accounts", select: "{ viewer }") +} + +type Mutation { + addReview(input: AddReviewInput!): AddReviewPayload! + @variable(subgraph: "Reviews2", name: "input", argument: "input") + @resolver(subgraph: "Reviews2", select: "{ addReview(input: $input) }", arguments: [ { name: "input", type: "AddReviewInput!" } ]) + addUser(input: AddUserInput!): AddUserPayload! + @variable(subgraph: "Accounts", name: "input", argument: "input") + @resolver(subgraph: "Accounts", select: "{ addUser(input: $input) }", arguments: [ { name: "input", type: "AddUserInput!" } ]) +} + +type Subscription { + onNewReview: Review! + @resolver(subgraph: "Reviews2", select: "{ onNewReview }", kind: "SUBSCRIBE") +} + +type AddReviewPayload { + review: Review + @source(subgraph: "Reviews2") +} + +type AddUserPayload { + user: User + @source(subgraph: "Accounts") +} + +type Product + @variable(subgraph: "Reviews2", name: "Product_id", select: "id") + @resolver(subgraph: "Reviews2", select: "{ productById(id: $Product_id) }", arguments: [ { name: "Product_id", type: "ID!" } ]) { + id: ID! + @source(subgraph: "Reviews2") + reviews: [Review!]! + @source(subgraph: "Reviews2") +} + +type Review implements Node + @variable(subgraph: "Reviews2", name: "Review_id", select: "id") + @resolver(subgraph: "Reviews2", select: "{ reviewById(id: $Review_id) }", arguments: [ { name: "Review_id", type: "ID!" } ]) + @resolver(subgraph: "Reviews2", select: "{ nodes(ids: $Review_id) { ... on Review { ... Review } } }", arguments: [ { name: "Review_id", type: "[ID!]!" } ], kind: "BATCH") { + author: User! + @source(subgraph: "Reviews2") + body: String! + @source(subgraph: "Reviews2") + errorField: String + @source(subgraph: "Reviews2") + id: ID! + @source(subgraph: "Reviews2") + product: Product! + @source(subgraph: "Reviews2") +} + +type SomeData { + accountValue: String! + @source(subgraph: "Accounts") + reviewsValue: String! + @source(subgraph: "Reviews2") +} + +"The user who wrote the review." +type User implements Node + @variable(subgraph: "Reviews2", name: "User_id", select: "id") + @variable(subgraph: "Accounts", name: "User_id", select: "id") + @resolver(subgraph: "Reviews2", select: "{ authorById(id: $User_id) }", arguments: [ { name: "User_id", type: "ID!" } ]) + @resolver(subgraph: "Accounts", select: "{ userById(id: $User_id) }", arguments: [ { name: "User_id", type: "ID!" } ]) + @resolver(subgraph: "Accounts", select: "{ usersById(ids: $User_id) }", arguments: [ { name: "User_id", type: "[ID!]!" } ], kind: "BATCH") + @resolver(subgraph: "Reviews2", select: "{ nodes(ids: $User_id) { ... on User { ... User } } }", arguments: [ { name: "User_id", type: "[ID!]!" } ], kind: "BATCH") { + birthdate: Date! + @source(subgraph: "Accounts") + errorField: String + @source(subgraph: "Accounts") + id: ID! + @source(subgraph: "Reviews2") + @source(subgraph: "Accounts") + name: String! + @source(subgraph: "Reviews2") + @source(subgraph: "Accounts") + reviews: [Review!]! + @source(subgraph: "Reviews2") + username: String! + @source(subgraph: "Accounts") +} + +type Viewer { + data: SomeData! + @source(subgraph: "Reviews2") + @source(subgraph: "Accounts") + latestReview: Review + @source(subgraph: "Reviews2") + user: User + @source(subgraph: "Accounts") +} + +"The node interface is implemented by entities that have a global unique identifier." +interface Node { + id: ID! +} + +union ReviewOrAuthor = User | Review + +input AddReviewInput { + authorId: Int! + body: String! + upc: Int! +} + +input AddUserInput { + birthdate: Date! + name: String! + username: String! +} + +"The `Date` scalar represents an ISO-8601 compliant date type." +scalar Date +``` + diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FieldDefinitionNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FieldDefinitionNodeTests.cs index 5ff8fc9dd42..bfee4b72d0f 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FieldDefinitionNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FieldDefinitionNodeTests.cs @@ -9,8 +9,8 @@ public class FieldDefinitionNodeTests public void Equals_FieldDefinitionNode_When_Both_Are_Equal() { // arrange - FieldDefinitionNode a = ParseFieldDefinition("foo(a: String): String @bar"); - FieldDefinitionNode b = ParseFieldDefinition("foo(a: String): String @bar"); + var a = ParseFieldDefinition("foo(a: String): String @bar"); + var b = ParseFieldDefinition("foo(a: String): String @bar"); // act var success = SyntaxComparer.BySyntax.Equals(a, b); diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FloatValueNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FloatValueNodeTests.cs index ff989db8c75..394cd56a9ef 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FloatValueNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/FloatValueNodeTests.cs @@ -225,7 +225,7 @@ public void Convert_Value_Float_To_Span_To_String() { // act var a = new FloatValueNode(2.5); - FloatValueNode b = a.WithValue(a.AsSpan(), FloatFormat.FixedPoint); + var b = a.WithValue(a.AsSpan(), FloatFormat.FixedPoint); var c = b.Value; // assert diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs index 2ef68698fcc..6141fb7a42b 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs @@ -11,10 +11,10 @@ public void CreateSchemaCoordinateWithLocation() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = false; - NameNode name = new NameNode("Foo"); - NameNode memberName = new NameNode("bar"); - NameNode argumentName = new NameNode("baz"); + var ofDirective = false; + var name = new NameNode("Foo"); + var memberName = new NameNode("bar"); + var argumentName = new NameNode("baz"); // act var coordinate = @@ -34,10 +34,10 @@ public void CreateSchemaCoordinateWithLocation() public void CreateSchemaCoordinateWithoutLocation() { // arrange - bool ofDirective = false; - NameNode name = new NameNode("Foo"); - NameNode memberName = new NameNode("bar"); - NameNode argumentName = new NameNode("baz"); + var ofDirective = false; + var name = new NameNode("Foo"); + var memberName = new NameNode("bar"); + var argumentName = new NameNode("baz"); // act var coordinate = @@ -58,9 +58,9 @@ public void CreateSchemaCoordinateWithoutArgumentName() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = false; - NameNode name = new NameNode("Foo"); - NameNode memberName = new NameNode("bar"); + var ofDirective = false; + var name = new NameNode("Foo"); + var memberName = new NameNode("bar"); // act var coordinate = @@ -81,8 +81,8 @@ public void CreateSchemaCoordinateWithoutArgumentAndMemberName() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = false; - NameNode name = new NameNode("Foo"); + var ofDirective = false; + var name = new NameNode("Foo"); // act var coordinate = @@ -103,9 +103,9 @@ public void CreateSchemaCoordinateOfDirectiveWithArgumentName() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = true; - NameNode name = new NameNode("Foo"); - NameNode argumentName = new NameNode("baz"); + var ofDirective = true; + var name = new NameNode("Foo"); + var argumentName = new NameNode("baz"); // act var coordinate = @@ -126,8 +126,8 @@ public void CreateSchemaCoordinateOfDirectiveWithoutArgumentName() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = true; - NameNode name = new NameNode("Foo"); + var ofDirective = true; + var name = new NameNode("Foo"); // act var coordinate = @@ -148,12 +148,12 @@ public void CreateSchemaCoordinateOfDirectiveWithMemberName() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = true; - NameNode name = new NameNode("Foo"); - NameNode memberName = new NameNode("Foo"); + var ofDirective = true; + var name = new NameNode("Foo"); + var memberName = new NameNode("Foo"); // act - Exception ex = Record.Exception(() => + var ex = Record.Exception(() => { new SchemaCoordinateNode(location, ofDirective, name, memberName, null); }); @@ -167,12 +167,12 @@ public void CreateSchemaCoordinateOfTypeWithArgumentNameButNoMemberName() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = false; - NameNode name = new NameNode("Foo"); - NameNode argumentName = new NameNode("baz"); + var ofDirective = false; + var name = new NameNode("Foo"); + var argumentName = new NameNode("baz"); // act - Exception ex = Record.Exception(() => + var ex = Record.Exception(() => { new SchemaCoordinateNode(location, ofDirective, name, null, argumentName); }); @@ -186,10 +186,10 @@ public void CreateSchemaCoordinateWithoutName() { // arrange var location = new Location(0, 0, 0, 0); - bool ofDirective = false; + var ofDirective = false; // act - Exception ex = Record.Exception(() => + var ex = Record.Exception(() => { new SchemaCoordinateNode(location, ofDirective, null!, null, null); }); @@ -203,11 +203,11 @@ public void SchemaCoordinate_With_Location() { // arrange var location = new Location(0, 0, 0, 0); - NameNode name = new NameNode("Foo"); + var name = new NameNode("Foo"); var node = new SchemaCoordinateNode(null, false, name, null, null); // act - SchemaCoordinateNode rewrittenNode = node.WithLocation(location); + var rewrittenNode = node.WithLocation(location); // assert Assert.Equal(location, rewrittenNode.Location); @@ -217,12 +217,12 @@ public void SchemaCoordinate_With_Location() public void SchemaCoordinate_With_Name() { // arrange - NameNode name = new NameNode("Foo"); - NameNode newName = new NameNode("newName"); + var name = new NameNode("Foo"); + var newName = new NameNode("newName"); var node = new SchemaCoordinateNode(null, false, name, null, null); // act - SchemaCoordinateNode rewrittenNode = node.WithName(newName); + var rewrittenNode = node.WithName(newName); // assert Assert.Equal(newName, rewrittenNode.Name); @@ -232,12 +232,12 @@ public void SchemaCoordinate_With_Name() public void SchemaCoordinate_With_MemberName() { // arrange - NameNode name = new NameNode("Foo"); - NameNode memberName = new NameNode("foo"); + var name = new NameNode("Foo"); + var memberName = new NameNode("foo"); var node = new SchemaCoordinateNode(null, false, name, null, null); // act - SchemaCoordinateNode rewrittenNode = node.WithMemberName(memberName); + var rewrittenNode = node.WithMemberName(memberName); // assert Assert.Equal(memberName, rewrittenNode.MemberName); @@ -247,13 +247,13 @@ public void SchemaCoordinate_With_MemberName() public void SchemaCoordinate_With_ArgumentName() { // arrange - NameNode name = new NameNode("Foo"); - NameNode memberName = new NameNode("foo"); - NameNode argumentName = new NameNode("baz"); + var name = new NameNode("Foo"); + var memberName = new NameNode("foo"); + var argumentName = new NameNode("baz"); var node = new SchemaCoordinateNode(null, false, name, memberName, null); // act - SchemaCoordinateNode rewrittenNode = node.WithArgumentName(argumentName); + var rewrittenNode = node.WithArgumentName(argumentName); // assert Assert.Equal(argumentName, rewrittenNode.ArgumentName); @@ -263,11 +263,11 @@ public void SchemaCoordinate_With_ArgumentName() public void SchemaCoordinate_With_OfDirective() { // arrange - NameNode name = new NameNode("Foo"); + var name = new NameNode("Foo"); var node = new SchemaCoordinateNode(null, false, name, null, null); // act - SchemaCoordinateNode rewrittenNode = node.WithOfDirective(true); + var rewrittenNode = node.WithOfDirective(true); // assert Assert.True(rewrittenNode.OfDirective); diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs index 61ab71c66cb..d261e371aa7 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs @@ -161,7 +161,7 @@ public void GetHashCode_With_Location() public void CreateSelectionSet() { // arrange - Location location = AstTestHelper.CreateDummyLocation(); + var location = AstTestHelper.CreateDummyLocation(); var selections = new List { new FieldNode @@ -191,7 +191,7 @@ public void CreateSelectionSet() public void WithLocation() { // arrange - Location location = AstTestHelper.CreateDummyLocation(); + var location = AstTestHelper.CreateDummyLocation(); var selections = new List { new FieldNode @@ -223,7 +223,7 @@ public void WithLocation() public void WithSelections() { // arrange - Location location = AstTestHelper.CreateDummyLocation(); + var location = AstTestHelper.CreateDummyLocation(); var selections = new List { new FieldNode diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs index 6e898eff62e..86ea5f05f7b 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs @@ -10,7 +10,7 @@ public void Serialize_ObjectTypeDefNoIndent_InOutShouldBeTheSame() { // arrange var schema = "type Foo { bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -24,7 +24,7 @@ public void Serialize_ObjectTypeDefWithIndent_OutHasIndentation() { // arrange var schema = "type Foo { bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -38,7 +38,7 @@ public void Serialize_ObjectTypeDefWithArgsNoIndent_InOutShouldBeTheSame() { // arrange var schema = "type Foo { bar(a: Int = 1 b: Int): String }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -52,7 +52,7 @@ public void Serialize_ObjectTypeDefWithArgsWithIndent_OutHasIndentation() { // arrange var schema = "type Foo { bar(a: Int = 1 b: Int): String }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -68,7 +68,7 @@ public void Serialize_ObjectTypeDefWithDirectivesNoIndent_InOutShouldBeTheSame() var schema = "type Foo @a(x: \"y\") { bar: String baz: [Int] } " + "type Foo @a @b { bar: String @foo " + "baz(a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -84,7 +84,7 @@ public void Serialize_ObjectTypeDefWithDirectivesWithIndent_OutHasIndentation() var schema = "type Foo @a(x: \"y\") { bar: String baz: [Int] } " + "type Foo @a @b { bar: String @foo " + "baz(a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -101,7 +101,7 @@ public void Serialize_ObjectTypeDefWithDescriptionNoIndent_InOutShouldBeTheSame( "\"abc\" baz: [Int] } " + "\"abc\" type Foo @a @b { \"abc\" bar: String @foo " + "\"abc\" baz(\"abc\" a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -118,7 +118,7 @@ public void Serialize_ObjectTypeDefWithDescriptionWithIndent_OutHasIndentation() "\"abc\" baz: [Int] } " + "\"abc\" type Foo @a @b { \"abc\" bar: String @foo " + "\"abc\" baz(\"abc\" a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -133,7 +133,7 @@ public void Serialize_ObjectTypeImplementsXYZ_InOutShouldBeTheSame() // arrange var schema = "type Foo implements X & Y & Z " + "{ bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -148,7 +148,7 @@ public void Serialize_ObjectTypeImplementsXYZWithIndent_OutHasIndentation() // arrange var schema = "type Foo implements X & Y & Z " + "{ bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -162,7 +162,7 @@ public void Serialize_ObjectTypeExtensionDef_InOutShouldBeTheSame() { // arrange var schema = "extend type Foo { bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -176,7 +176,7 @@ public void Serialize_InterfaceTypeDefNoIndent_InOutShouldBeTheSame() { // arrange var schema = "interface Foo { bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -190,7 +190,7 @@ public void Serialize_InterfaceTypeDefWithIndent_OutHasIndentation() { // arrange var schema = "interface Foo { bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -204,7 +204,7 @@ public void Serialize_InterfaceTypeDefWithArgsNoIndent_InOutShouldBeTheSame() { // arrange var schema = "interface Foo { bar(a: Int = 1 b: Int): String }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -218,7 +218,7 @@ public void Serialize_InterfaceTypeDefWithArgsWithIndent_OutHasIndentation() { // arrange var schema = "interface Foo { bar(a: Int = 1 b: Int): String }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -234,7 +234,7 @@ public void Serialize_InterfaceTypeDefWithDirectivesNoIndent_InOutShouldBeTheSam var schema = "interface Foo @a(x: \"y\") { bar: String baz: [Int] } " + "interface Foo @a @b { bar: String @foo " + "baz(a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -250,7 +250,7 @@ public void Serialize_InterfaceTypeDefWithDirectivesWithIndent_OutHasIndentation var schema = "interface Foo @a(x: \"y\") { bar: String baz: [Int] } " + "interface Foo @a @b { bar: String @foo " + "baz(a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -267,7 +267,7 @@ public void Serialize_InterfaceTypeDefWithDescriptionNoIndent_InOutShouldBeTheSa "\"abc\" baz: [Int] } " + "\"abc\" interface Foo @a @b { \"abc\" bar: String @foo " + "\"abc\" baz(\"abc\" a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -284,7 +284,7 @@ public void Serialize_InterfaceTypeDefWithDescriptionWithIndent_OutHasIndentatio "\"abc\" baz: [Int] } " + "\"abc\" interface Foo @a @b { \"abc\" bar: String @foo " + "\"abc\" baz(\"abc\" a: String = \"abc\"): [Int] @foo @bar }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -299,7 +299,7 @@ public void Serialize_InterfaceTypeImplementsXYZ_InOutShouldBeTheSame() // arrange var schema = "interface Foo implements X & Y & Z " + "{ bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -314,7 +314,7 @@ public void Serialize_InterfaceTypeImplementsXYZWithIndent_OutHasIndentation() // arrange var schema = "interface Foo implements X & Y & Z " + "{ bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -328,7 +328,7 @@ public void Serialize_InterfaceTypeExtensionDef_InOutShouldBeTheSame() { // arrange var schema = "extend interface Foo { bar: String baz: [Int] }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -342,7 +342,7 @@ public void Serialize_UnionTypeDefNoIndent_InOutShouldBeTheSame() { // arrange var schema = "union A = B | C"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -356,7 +356,7 @@ public void Serialize_UnionTypeDefNoIndent_OutHasIndentation() { // arrange var schema = "union A = B | C"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -370,7 +370,7 @@ public void Serialize_UnionTypeDefWithDirectiveNoIndent_InOutShouldBeTheSame() { // arrange var schema = "union A @a = B | C union A @a @b = B | C"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -384,7 +384,7 @@ public void Serialize_UnionTypeWithDirectiveDefNoIndent_OutHasIndentation() { // arrange var schema = "union A @a = B | C union A @a @b = B | C"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -398,7 +398,7 @@ public void Serialize_UnionTypeDefWithDescriptionNoIndent_InOutShouldBeTheSame() { // arrange var schema = "\"abc\" union A = B | C"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -412,7 +412,7 @@ public void Serialize_UnionTypeDefWithDescriptionNoIndented_OutHasIndentation() { // arrange var schema = "\"abc\"union A = B | C"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -426,7 +426,7 @@ public void Serialize_UnionTypeExtensionDef_InOutShouldBeTheSame() { // arrange var schema = "extend union A = B | C"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -440,7 +440,7 @@ public void Serialize_EnumTypeDefNoIndent_InOutShouldBeTheSame() { // arrange var schema = "enum A { B C }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -454,7 +454,7 @@ public void Serialize_EnumTypeDefNoIndent_OutHasIndentation() { // arrange var schema = "enum A { B C }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -468,7 +468,7 @@ public void Serialize_EnumTypeDefWithDirectiveNoIndent_InOutShouldBeTheSame() { // arrange var schema = "enum A @a @b(c: 1) { B @a @b(c: 1) C @a @b(c: 1) }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -482,7 +482,7 @@ public void Serialize_EnumTypeWithDirectiveDefNoIndent_OutHasIndentation() { // arrange var schema = "enum A @a @b(c: 1) { B @a @b(c: 1) C @a @b(c: 1) }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -496,7 +496,7 @@ public void Serialize_EnumTypeDefWithDescriptionNoIndent_InOutShouldBeTheSame() { // arrange var schema = "\"abc\" enum A { \"def\" B \"ghi\" C }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -510,7 +510,7 @@ public void Serialize_EnumTypeDefWithDescriptionNoIndented_OutHasIndentation() { // arrange var schema = "\"abc\" enum A { \"def\" B \"ghi\" C }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -524,7 +524,7 @@ public void Serialize_EnumTypeExtensionDef_InOutShouldBeTheSame() { // arrange var schema = "extend enum A { B C }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -538,7 +538,7 @@ public void Serialize_InputObjectTypeDefNoIndent_InOutShouldBeTheSame() { // arrange var schema = "input A { b: String c: [String!]! d: Int = 1 }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -552,7 +552,7 @@ public void Serialize_InputObjectTypeDefNoIndent_OutHasIndentation() { // arrange var schema = "input A { b: String c: [String!]! d: Int = 1 }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -567,7 +567,7 @@ public void Serialize_InputObjectTypeDefWithDirectiveNoIndent_InOutShouldBeTheSa // arrange var schema = "input A @a @b(c: 1) { b: String @a @b(c: 1) " + "c: [String!]! @a @b(c: 1) d: Int = 1 @a @b(c: 1) }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -582,7 +582,7 @@ public void Serialize_InputObjectTypeWithDirectiveDefNoIndent_OutHasIndentation( // arrange var schema = "input A @a @b(c: 1) { b: String @a @b(c: 1) " + "c: [String!]! @a @b(c: 1) d: Int = 1 @a @b(c: 1) }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -596,7 +596,7 @@ public void Serialize_InputObjectTypeDefWithDescriptionNoIndent_InOutShouldBeThe { // arrange var schema = "\"abc\" input A { \"abc\" b: String }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -610,7 +610,7 @@ public void Serialize_InputObjectTypeDefWithDescriptionNoIndentt_OutHasIndentati { // arrange var schema = "\"abc\" input A { \"abc\" b: String }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -624,7 +624,7 @@ public void Serialize_InputObjectTypeExtensionDef_InOutShouldBeTheSame() { // arrange var schema = "extend input A { b: String }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -638,7 +638,7 @@ public void Serialize_ScalarTypeDefNoIndent_InOutShouldBeTheSame() { // arrange var schema = "scalar A"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -652,7 +652,7 @@ public void Serialize_ScalarTypeDefWithDirectiveNoIndent_InOutShouldBeTheSame() { // arrange var schema = "scalar A @a @b(c: 1)"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -666,7 +666,7 @@ public void Serialize_ScalarTypeDefWithDescNoIndent_InOutShouldBeTheSame() { // arrange var schema = "\"abc\" scalar A @a @b(c: 1)"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -680,7 +680,7 @@ public void Serialize_ScalarTypeDefWithDescIndent_OutHasIndentation() { // arrange var schema = "\"abc\" scalar A @a @b(c: 1)"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); @@ -694,7 +694,7 @@ public void Serialize_ScalarTypeExtensionDef_InOutShouldBeTheSame() { // arrange var schema = "extend scalar A @a @b(c: 1)"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -708,7 +708,7 @@ public void Serialize_SchemaDefWithOpNoIndent_InOutShouldBeTheSame() { // arrange var schema = "schema { query: A }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -722,7 +722,7 @@ public void Serialize_SchemaDefWithOpNoIndent_OutHasIndentation() { // arrange var schema = "schema { query: A }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -736,7 +736,7 @@ public void Serialize_SchemaDefWithOpAndDirecNoIndent_InOutShouldBeTheSame() { // arrange var schema = "schema @a @b(c: 1) { query: A }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -750,7 +750,7 @@ public void Serialize_SchemaDefWithOpAndDirecNoIndent_OutHasIndentation() { // arrange var schema = "schema @a @b(c: 1) { query: A }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); @@ -764,7 +764,7 @@ public void Serialize_SchemaTypeExtensionDef_InOutShouldBeTheSame() { // arrange var schema = "extend schema { query: A }"; - DocumentNode document = Utf8GraphQLParser.Parse(schema); + var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(false); diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableNodeTests.cs index 9f949d6482b..4bd7faf9846 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableNodeTests.cs @@ -120,7 +120,7 @@ public void Create_Name_LocationFoo_LocationAndNameIsPassed() { // arrange var name = new NameNode("foo"); - Location location = AstTestHelper.CreateDummyLocation(); + var location = AstTestHelper.CreateDummyLocation(); // act var node = new VariableNode(location, name); @@ -145,7 +145,7 @@ public void Create_Name_Null_ArgumentNullException() public void Create_Name_LocationNull_ArgumentNullException() { // arrange - Location location = AstTestHelper.CreateDummyLocation(); + var location = AstTestHelper.CreateDummyLocation(); // act VariableNode Action() => new(location, null!); @@ -175,7 +175,7 @@ public void WithLocation_Location_NewObjectHasNewLocation() // arrange var foo = new NameNode("foo"); var node = new VariableNode(foo); - Location location = AstTestHelper.CreateDummyLocation(); + var location = AstTestHelper.CreateDummyLocation(); // act node = node.WithLocation(location); diff --git a/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs b/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs index 823ec8ce116..40e9b60c782 100644 --- a/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs +++ b/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs @@ -25,7 +25,7 @@ public static IError CreateNonNullError( MongoDbResources.ErrorHelper_Filtering_CreateNonNullError, context.Operations.Peek().Name, filterType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetCode(ErrorCodes.Data.NonNullError) .SetExtension("expectedType", field.Type.RewriteNullability(nullability).Print()) .SetExtension("filterType", filterType.Print()) @@ -44,7 +44,7 @@ public static IError CreateNonNullError( MongoDbResources.ErrorHelper_Filtering_CreateNonNullError, context.Fields.Peek().Name, sortType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetCode(ErrorCodes.Data.NonNullError) .SetExtension("expectedType", new NonNullType(field.Type).Print()) .SetExtension("sortType", sortType.Print()) diff --git a/src/HotChocolate/PersistedQueries/test/PersistedQueries.FileSystem.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap b/src/HotChocolate/PersistedQueries/test/PersistedQueries.FileSystem.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap index 88609d7f2f2..44a94577351 100644 --- a/src/HotChocolate/PersistedQueries/test/PersistedQueries.FileSystem.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap +++ b/src/HotChocolate/PersistedQueries/test/PersistedQueries.FileSystem.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap @@ -14,8 +14,7 @@ "code": "HC0020", "requestedKey": "does_not_exist" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ], "Extensions": null, diff --git a/src/HotChocolate/PersistedQueries/test/PersistedQueries.Redis.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap b/src/HotChocolate/PersistedQueries/test/PersistedQueries.Redis.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap index 88609d7f2f2..44a94577351 100644 --- a/src/HotChocolate/PersistedQueries/test/PersistedQueries.Redis.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap +++ b/src/HotChocolate/PersistedQueries/test/PersistedQueries.Redis.Tests/__snapshots__/IntegrationTests.ExecutePersistedQuery_NotFound.snap @@ -14,8 +14,7 @@ "code": "HC0020", "requestedKey": "does_not_exist" }, - "Exception": null, - "SyntaxNode": null + "Exception": null } ], "Extensions": null, diff --git a/src/HotChocolate/Raven/src/Data/ErrorHelper.cs b/src/HotChocolate/Raven/src/Data/ErrorHelper.cs index 6fc2988568c..17936d82117 100644 --- a/src/HotChocolate/Raven/src/Data/ErrorHelper.cs +++ b/src/HotChocolate/Raven/src/Data/ErrorHelper.cs @@ -18,7 +18,7 @@ public static IError CreateNonNullError( RavenDataResources.ErrorHelper_CreateNonNullError, context.Fields.Peek().Name, sortType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetCode(ErrorCodes.Data.NonNullError) .SetExtension("expectedType", new NonNullType(field.Type).Print()) .SetExtension("sortType", sortType.Print()) diff --git a/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs b/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs index a849636f7f5..c9f05cf7666 100644 --- a/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs +++ b/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs @@ -12,14 +12,14 @@ public static IError CreateNonNullError( IValueNode value, IFilterVisitorContext context) { - IFilterInputType filterType = context.Types.OfType().First(); + var filterType = context.Types.OfType().First(); return ErrorBuilder.New() .SetMessage( DataResources.ErrorHelper_CreateNonNullError, context.Operations.Peek().Name, filterType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetExtension("expectedType", new NonNullType(field.Type).Print()) .SetExtension("filterType", filterType.Print()) .Build(); @@ -30,14 +30,14 @@ public static IError CouldNotCreateFilterForOperation( IValueNode value, IFilterVisitorContext context) { - IFilterInputType filterType = context.Types.OfType().First(); + var filterType = context.Types.OfType().First(); return ErrorBuilder.New() .SetMessage( DataResources.CouldNotCreateFilterForOperation, context.Operations.Peek().Name, filterType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetExtension("expectedType", new NonNullType(field.Type).Print()) .SetExtension("filterType", filterType.Print()) .Build(); @@ -48,14 +48,14 @@ public static IError CreateNonNullError( IValueNode value, ISortVisitorContext context) { - ISortInputType sortType = context.Types.OfType().First(); + var sortType = context.Types.OfType().First(); return ErrorBuilder.New() .SetMessage( DataResources.ErrorHelper_CreateNonNullError, context.Fields.Peek().Name, sortType.Print()) - .AddLocation(value) + .AddLocation([value]) .SetExtension("expectedType", new NonNullType(field.Type).Print()) .SetExtension("sortType", sortType.Print()) .Build(); diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialBooleanMethodHandler.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialBooleanMethodHandler.cs index a137e6eb0cf..0f81a953dde 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialBooleanMethodHandler.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialBooleanMethodHandler.cs @@ -65,7 +65,7 @@ public override bool TryHandleEnter( context, filterOperationField, node, - out Expression? nestedProperty)) + out var nestedProperty)) { context.ReportError( ErrorHelper.CouldNotCreateFilterForOperation(field, node.Value, context)); @@ -98,9 +98,9 @@ public override bool TryHandleLeave( [NotNullWhen(true)] out ISyntaxVisitorAction? action) { // Dequeue last - Expression instance = context.PopInstance(); + var instance = context.PopInstance(); context.RuntimeTypes.Pop(); - Expression condition = IsTrue ? instance : FilterExpressionBuilder.Not(instance); + var condition = IsTrue ? instance : FilterExpressionBuilder.Not(instance); if (context.InMemory) { diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs index ae05d5fcb2c..5fb4378e3fd 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs @@ -63,7 +63,7 @@ public override bool TryHandleEnter( context, filterOperationField, node, - out Expression? nestedProperty)) + out var nestedProperty)) { context.ReportError( ErrorHelper.CouldNotCreateFilterForOperation(field, node.Value, context)); @@ -96,7 +96,7 @@ public override bool TryHandleLeave( [NotNullWhen(true)] out ISyntaxVisitorAction? action) { // Dequeue last - Expression condition = context.GetLevel().Dequeue(); + var condition = context.GetLevel().Dequeue(); context.PopInstance(); context.RuntimeTypes.Pop(); diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/SpatialOperationHandlerHelper.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/SpatialOperationHandlerHelper.cs index 4bd717785fe..b4aeebca182 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/SpatialOperationHandlerHelper.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/SpatialOperationHandlerHelper.cs @@ -20,7 +20,7 @@ public static bool TryGetParameter( { if (objectValueNode.Fields[i].Name.Value == fieldName) { - ObjectFieldNode fieldValue = objectValueNode.Fields[i]; + var fieldValue = objectValueNode.Fields[i]; IInputField field = inputType.Fields[fieldName]; if (inputParser.ParseLiteral(fieldValue.Value, field) is T val) diff --git a/src/StrawberryShake/Client/src/Razor/DataComponent.cs b/src/StrawberryShake/Client/src/Razor/DataComponent.cs index e201110f874..749208c49ab 100644 --- a/src/StrawberryShake/Client/src/Razor/DataComponent.cs +++ b/src/StrawberryShake/Client/src/Razor/DataComponent.cs @@ -71,7 +71,7 @@ protected virtual void Dispose(bool disposing) { if (disposing) { - foreach (IDisposable subscription in _subscriptions) + foreach (var subscription in _subscriptions) { subscription.Dispose(); } diff --git a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/DefaultInMemoryClientFactory.cs b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/DefaultInMemoryClientFactory.cs index 68d990a6b58..97b534145cb 100644 --- a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/DefaultInMemoryClientFactory.cs +++ b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/DefaultInMemoryClientFactory.cs @@ -42,7 +42,7 @@ public async ValueTask CreateAsync( throw ThrowHelper.Argument_IsNullOrEmpty(nameof(name)); } - InMemoryClientFactoryOptions options = _optionsMonitor.Get(name); + var options = _optionsMonitor.Get(name); var client = new InMemoryClient(name); for (var i = 0; i < options.InMemoryClientActions.Count; i++) diff --git a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClient.cs b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClient.cs index 4437757c0b5..e8e63c34d7b 100644 --- a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClient.cs +++ b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClient.cs @@ -77,7 +77,7 @@ public async ValueTask ExecuteAsync( requestBuilder.SetExtensions(request.GetExtensionsOrNull()); requestBuilder.InitializeGlobalState(request.GetContextDataOrNull()); - IServiceProvider applicationService = Executor.Services.GetApplicationServices(); + var applicationService = Executor.Services.GetApplicationServices(); foreach (var interceptor in RequestInterceptors) { await interceptor @@ -97,7 +97,7 @@ await interceptor var unflattened = MapFilesToLookup(request.Files); var response = new Dictionary(); - foreach (KeyValuePair pair in variables) + foreach (var pair in variables) { unflattened.TryGetValue(pair.Key, out var fileValue); response[pair.Key] = CreateVariableValue(pair.Value, fileValue); @@ -175,7 +175,7 @@ private static IReadOnlyDictionary MapFilesToLookup( { var segment = path[i]; - string? nextSegment = i + 1 == path.Length ? null : path[i + 1]; + var nextSegment = i + 1 == path.Length ? null : path[i + 1]; if (char.IsDigit(segment[0])) { diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/DefaultSocketClientFactory.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/DefaultSocketClientFactory.cs index 6690440317c..bca734913da 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/DefaultSocketClientFactory.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/DefaultSocketClientFactory.cs @@ -34,7 +34,7 @@ public ISocketClient CreateClient(string name) throw ThrowHelper.Argument_IsNullOrEmpty(nameof(name)); } - SocketClientFactoryOptions options = _optionsMonitor.Get(name); + var options = _optionsMonitor.Get(name); var client = new WebSocketClient(name, _protocolFactories); for (var i = 0; i < options.SocketClientActions.Count; i++) diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientBuilderExtensions.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientBuilderExtensions.cs index 7e4e79c81bc..b89bd5fa7c2 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientBuilderExtensions.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientBuilderExtensions.cs @@ -41,7 +41,7 @@ public static IClientBuilder ConfigureWebSocketClient( throw new ArgumentNullException(nameof(configureClient)); } - IWebSocketClientBuilder builder = clientBuilder.Services + var builder = clientBuilder.Services .AddWebSocketClient(clientBuilder.ClientName, configureClient); configureClientBuilder?.Invoke(builder); @@ -80,7 +80,7 @@ public static IClientBuilder ConfigureWebSocketClient( throw new ArgumentNullException(nameof(configureClient)); } - IWebSocketClientBuilder builder = clientBuilder.Services + var builder = clientBuilder.Services .AddWebSocketClient(clientBuilder.ClientName, configureClient); configureClientBuilder?.Invoke(builder); diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageProcessor.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageProcessor.cs index 61cfda70151..9de024dc429 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageProcessor.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageProcessor.cs @@ -59,8 +59,8 @@ private static async Task ProcessMessagesAsync( { while (true) { - ReadResult result = await reader.ReadAsync(ct).ConfigureAwait(false); - ReadOnlySequence buffer = result.Buffer; + var result = await reader.ReadAsync(ct).ConfigureAwait(false); + var buffer = result.Buffer; SequencePosition? position; do diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageReceiver.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageReceiver.cs index e14737f9758..6b38f80ada8 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageReceiver.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/MessageReceiver.cs @@ -62,7 +62,7 @@ private static async Task WriteMessageDelimiterAsync( this PipeWriter writer, CancellationToken cancellationToken) { - Memory memory = writer.GetMemory(1); + var memory = writer.GetMemory(1); memory.Span[0] = MessageProcessor.Delimiter; writer.Advance(1); diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/RequestWriter.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/RequestWriter.cs index 5f6d09a052f..24952e0cc00 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/RequestWriter.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/RequestWriter.cs @@ -56,9 +56,9 @@ private void EnsureBufferCapacity(int neededCapacity) { if (_capacity < neededCapacity) { - byte[] buffer = _buffer; + var buffer = _buffer; - int newSize = buffer.Length * 2; + var newSize = buffer.Length * 2; if (neededCapacity > buffer.Length) { newSize += neededCapacity; diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParser.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParser.cs index 99341d6d44b..7b2eaf5aa6f 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParser.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParser.cs @@ -94,7 +94,7 @@ private GraphQLWebSocketMessage ParseMessage() private void ParseMessageProperty(ref GraphQLWebSocketMessage message) { Expect(JsonTokenType.PropertyName); - ReadOnlySpan fieldName = _reader.ValueSpan; + var fieldName = _reader.ValueSpan; _reader.Read(); switch (fieldName[0]) @@ -132,7 +132,7 @@ private void ParseMessageProperty(ref GraphQLWebSocketMessage message) private GraphQLWebSocketMessageType ParseMessageType() { - ReadOnlySpan typeName = _reader.ValueSpan; + var typeName = _reader.ValueSpan; if (typeName.IsEmpty) { throw ThrowHelper.Serialization_MessageHadNoTypeSpecified(); diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs index c9132bb8683..af69f635933 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs @@ -107,7 +107,7 @@ private ValueTask ProcessAsync( { try { - GraphQLWebSocketMessage message = GraphQLWebSocketMessageParser.Parse(slice); + var message = GraphQLWebSocketMessageParser.Parse(slice); if (message.Id is { } id) { @@ -155,7 +155,7 @@ private ValueTask ProcessAsync( private static IClientError CreateError(JsonDocument error) { - if (error.RootElement.TryGetProperty("message", out JsonElement messageProp) && + if (error.RootElement.TryGetProperty("message", out var messageProp) && messageProp.GetString() is { Length: > 0, } message) { return new ClientError(message); diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtension.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtension.cs index 19d0c38072a..d313a1767e9 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtension.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtension.cs @@ -106,7 +106,7 @@ private static void WriteType( GraphQLWebSocketMessageType type) { writer.Writer.WritePropertyName("type"); - ReadOnlySpan typeToWriter = type switch + var typeToWriter = type switch { GraphQLWebSocketMessageType.ConnectionInit => ConnectionInitialize, GraphQLWebSocketMessageType.ConnectionAccept => ConnectionAccept, diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Session.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Session.cs index 7e49e3b58d7..947e081c6c1 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Session.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Session.cs @@ -83,9 +83,9 @@ public async Task StopOperationAsync( string operationId, CancellationToken cancellationToken = default) { - EnsureSession(out ISocketProtocol socketProtocol); + EnsureSession(out var socketProtocol); - if (_operations.TryRemove(operationId, out SocketOperation? operation)) + if (_operations.TryRemove(operationId, out var operation)) { await socketProtocol .StopOperationAsync(operationId, cancellationToken) @@ -116,7 +116,7 @@ private void ReceiveFinishHandler(object? sender, EventArgs args) /// The cancellation token to cancel the operation public async Task OpenSessionAsync(CancellationToken cancellationToken = default) { - ISocketProtocol socketProtocol = + var socketProtocol = await _socketClient.OpenAsync(cancellationToken) .ConfigureAwait(false); @@ -153,7 +153,7 @@ private async ValueTask ReceiveMessage( OperationMessage message, CancellationToken cancellationToken = default) { - if (_operations.TryGetValue(operationId, out SocketOperation? operation)) + if (_operations.TryGetValue(operationId, out var operation)) { await operation.ReceiveMessageAsync(message, cancellationToken); } diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/SessionPool.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/SessionPool.cs index c2dbcad127d..2ea54c35746 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/SessionPool.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/SessionPool.cs @@ -30,13 +30,13 @@ public async Task CreateAsync( try { - if (_sessions.TryGetValue(name, out SessionInfo? sessionInfo)) + if (_sessions.TryGetValue(name, out var sessionInfo)) { sessionInfo.Rentals++; } else { - ISocketClient client = _socketClientFactory.CreateClient(name); + var client = _socketClientFactory.CreateClient(name); sessionInfo = SessionInfo.From(client, this); _sessions.Add(name, sessionInfo); @@ -50,7 +50,7 @@ await sessionInfo.Session } catch { - if (_sessions.TryGetValue(name, out SessionInfo? sessionInfo)) + if (_sessions.TryGetValue(name, out var sessionInfo)) { await RemoveAndDisposeAsync( sessionInfo.Session, @@ -70,7 +70,7 @@ public async ValueTask DisposeAsync() { if (!_disposed) { - foreach (SessionInfo connection in _sessions.Values) + foreach (var connection in _sessions.Values) { await connection.Session.DisposeAsync(); } @@ -93,7 +93,7 @@ private async Task ReturnAsync( try { - if (_sessions.TryGetValue(session.Name, out SessionInfo? connectionInfo)) + if (_sessions.TryGetValue(session.Name, out var connectionInfo)) { connectionInfo.Rentals--; } diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/SocketOperation.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/SocketOperation.cs index c78e39ab0e3..f5d16773542 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/SocketOperation.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/SocketOperation.cs @@ -94,7 +94,7 @@ public async IAsyncEnumerator GetAsyncEnumerator( while (!_operation._disposed && !reader.Completion.IsCompleted) { if (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false) && - reader.TryRead(out OperationMessage? message)) + reader.TryRead(out var message)) { yield return message; } diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketClient.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketClient.cs index 72c61f13a17..1a65b8e0b06 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketClient.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketClient.cs @@ -167,7 +167,7 @@ public async ValueTask SendAsync( return; } - if (MemoryMarshal.TryGetArray(message, out ArraySegment buffer)) + if (MemoryMarshal.TryGetArray(message, out var buffer)) { await _socket.SendAsync( buffer, @@ -192,7 +192,7 @@ public async ValueTask ReceiveAsync( WebSocketReceiveResult? socketResult = null; do { - Memory memory = writer.GetMemory(_maxMessageSize); + var memory = writer.GetMemory(_maxMessageSize); try { if (MemoryMarshal.TryGetArray(memory, out ArraySegment buffer)) @@ -214,7 +214,7 @@ public async ValueTask ReceiveAsync( break; } - FlushResult result = await writer + var result = await writer .FlushAsync(cancellationToken) .ConfigureAwait(false); diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs index d9570f74258..b79234de9c4 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs @@ -53,10 +53,10 @@ public ResponseStream( public async IAsyncEnumerator> GetAsyncEnumerator( CancellationToken cancellationToken = default) { - await using ISession session = + await using var session = await _sessionFactory(cancellationToken).ConfigureAwait(false); - await using ISocketOperation operation = + await using var operation = await session.StartOperationAsync(_request, cancellationToken) .ConfigureAwait(false); diff --git a/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs b/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs index fbfe71f1a42..2b2a97b02f1 100644 --- a/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs +++ b/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs @@ -63,7 +63,7 @@ public async Task Entity_Create() // assert var entities = new List(); - await foreach (EntityDto entityDto in helper.GetAllEntitiesAsync(connection)) + await foreach (var entityDto in helper.GetAllEntitiesAsync(connection)) { entities.Add(entityDto); } @@ -110,7 +110,7 @@ public async Task Entity_Update() // assert var entities = new List(); - await foreach (EntityDto entityDto in helper.GetAllEntitiesAsync(connection)) + await foreach (var entityDto in helper.GetAllEntitiesAsync(connection)) { entities.Add(entityDto); } @@ -150,7 +150,7 @@ public async Task Entity_Delete() // assert var entities = new List(); - await foreach (EntityDto entityDto in helper.GetAllEntitiesAsync(connection)) + await foreach (var entityDto in helper.GetAllEntitiesAsync(connection)) { entities.Add(entityDto); } @@ -183,7 +183,7 @@ public async Task Operation_Create() // assert var collections = new List(); - await foreach (OperationDto operationDto in helper.GetAllOperationsAsync(connection)) + await foreach (var operationDto in helper.GetAllOperationsAsync(connection)) { collections.Add(operationDto); } @@ -233,7 +233,7 @@ public async Task Operation_Update() // assert var collections = new List(); - await foreach (OperationDto operationDto in helper.GetAllOperationsAsync(connection)) + await foreach (var operationDto in helper.GetAllOperationsAsync(connection)) { collections.Add(operationDto); } @@ -275,7 +275,7 @@ public async Task Operation_Delete() // assert var collections = new List(); - await foreach (OperationDto operationDto in helper.GetAllOperationsAsync(connection)) + await foreach (var operationDto in helper.GetAllOperationsAsync(connection)) { collections.Add(operationDto); } diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs index 92ac59edf4e..567c4ac955f 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs @@ -31,7 +31,7 @@ public OutputTypeModel AnalyzeOperation( IDocumentAnalyzerContext context, SelectionSetVariants selectionSetVariants) { - Path rootSelectionPath = Path.Root.Append(context.OperationName); + var rootSelectionPath = Path.Root.Append(context.OperationName); var returnTypeFragment = FragmentHelper.CreateFragmentNode( diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs index 9787f666d72..427133634f9 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs @@ -17,13 +17,14 @@ public static IError WithFileReference( var extensions = new Dictionary(); extensions.Add(TitleExtensionKey, "Schema validation error"); + // TODO : we need to bring skimmed in and reenable this. // if the error has a syntax node we will try to lookup the // document and add the filename to the error. - if (error is Error { SyntaxNode: { } node, } && - fileLookup.TryGetValue(node, out var filename)) - { - extensions.Add(FileExtensionKey, filename); - } + // if (error is Error { SyntaxNode: { } node, } && + // fileLookup.TryGetValue(node, out var filename)) + // { + // extensions.Add(FileExtensionKey, filename); + // } return error .WithCode(SchemaValidationError) @@ -70,4 +71,4 @@ public static IError SyntaxError( .AddLocation(exception.Line, exception.Column) .SetCode(CodeGenerationErrorCodes.SyntaxError) .Build(); -} \ No newline at end of file +} diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs index 20afcdb8bd8..040c7353a21 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs @@ -264,7 +264,7 @@ private static RuntimeTypeInfo ExtractRuntimeType( if (kind == TypeKind.Result) { - string resultTypeName = CreateResultRootTypeName(outputType.Name); + var resultTypeName = CreateResultRootTypeName(outputType.Name); if (clientModel.OutputTypes.Any(t => t.Name.EqualsOrdinal(resultTypeName))) { resultTypeName = CreateResultRootTypeName(outputType.Name, outputType.Type); diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ThrowHelper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ThrowHelper.cs index e17b7d34eb5..ad8c66b0dca 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ThrowHelper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ThrowHelper.cs @@ -33,7 +33,7 @@ public static CodeGeneratorException UnionTypeDataEntityMixed( .New() .SetMessage(TypeDescriptorMapper_UnionTypeDataEntityMixed) .SetCode(CodeGenerationErrorCodes.UnionTypeDataEntityMixed) - .SetSyntaxNode(syntaxNode) + .AddLocation([syntaxNode]) .Build()); -} \ No newline at end of file +} diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/OperationDocumentHelper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/OperationDocumentHelper.cs index e9a8bf55564..da94da7c4c6 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/OperationDocumentHelper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/OperationDocumentHelper.cs @@ -105,7 +105,7 @@ private static void ValidateDocument(IEnumerable definitions) throw new CodeGeneratorException( ErrorBuilder.New() .SetMessage("All operations must be named.") - .AddLocation(op) + .AddLocation([op]) .Build()); } @@ -116,7 +116,7 @@ private static void ValidateDocument(IEnumerable definitions) .SetMessage( "The operation name `{0}` is not unique.", op.Name.Value) - .AddLocation(op) + .AddLocation([op]) .Build()); } } @@ -130,7 +130,7 @@ private static void ValidateDocument(IEnumerable definitions) .SetMessage( "The fragment name `{0}` is not unique.", fd.Name.Value) - .AddLocation(fd) + .AddLocation([fd]) .Build()); } } diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs index 62f42c202d9..e57d59939a9 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs @@ -157,7 +157,7 @@ public GetJsonResult(global::System.Text.Json.JsonElement json) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Json.GetHashCode(); return hash; } @@ -401,7 +401,7 @@ public partial class AnyScalarDefaultSerializationClientEntityIdFactory : global {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { _ => throw new global::System.NotSupportedException()}; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs index 43008ab3721..e28a7e3d540 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs @@ -159,7 +159,7 @@ public GetFooResult(global::System.Collections.Generic.IReadOnlyList(); - foreach (global::StrawberryShake.EntityIdOrData? child in list) + foreach (var child in list) { bars.Add(MapIGetFoo_Foo(child, snapshot)); } @@ -1044,7 +1044,7 @@ public partial class EntityIdOrDataClientEntityIdFactory : global::StrawberrySha {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Baz" => ParseBazEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs index 55d8567b7b5..db0eb2cf9e4 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs @@ -256,7 +256,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.M { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -325,7 +325,7 @@ public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.Co { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Friends != null) { @@ -395,7 +395,7 @@ public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.Co { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Friends != null) { @@ -468,7 +468,7 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic { unchecked { - int hash = 5; + var hash = 5; if (Nodes != null) { foreach (var Nodes_elm in Nodes) @@ -540,7 +540,7 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -602,7 +602,7 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -733,7 +733,7 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * OnReview.GetHashCode(); return hash; } @@ -804,7 +804,7 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * __typename.GetHashCode(); hash ^= 397 * Stars.GetHashCode(); if (Commentary != null) @@ -899,7 +899,7 @@ public CreateReviewMutResult(global::StrawberryShake.CodeGeneration.CSharp.Integ { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * CreateReview.GetHashCode(); return hash; } @@ -964,7 +964,7 @@ public CreateReviewMut_CreateReview_Review(global::System.Int32 stars, global::S { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Stars.GetHashCode(); if (Commentary != null) { @@ -1105,7 +1105,7 @@ public partial class ReviewInput : global::StrawberryShake.CodeGeneration.CSharp { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Stars.GetHashCode(); if (Commentary != null) { @@ -2315,7 +2315,7 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -2396,7 +2396,7 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -2475,7 +2475,7 @@ public partial class MultiProfileClientEntityIdFactory : global::StrawberryShake {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Droid" => ParseDroidEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs index bfc36c028d0..6ad15ec5741 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs @@ -163,7 +163,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -229,7 +229,7 @@ public GetHero_Hero_Droid(global::StrawberryShake.CodeGeneration.CSharp.Integrat { unchecked { - int hash = 5; + var hash = 5; if (Friends != null) { hash ^= 397 * Friends.GetHashCode(); @@ -295,7 +295,7 @@ public GetHero_Hero_Human(global::StrawberryShake.CodeGeneration.CSharp.Integrat { unchecked { - int hash = 5; + var hash = 5; if (Friends != null) { hash ^= 397 * Friends.GetHashCode(); @@ -367,7 +367,7 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic { unchecked { - int hash = 5; + var hash = 5; if (Nodes != null) { foreach (var Nodes_elm in Nodes) @@ -439,7 +439,7 @@ public CharacterName(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -501,7 +501,7 @@ public GetHero_Hero_Friends_Nodes_Droid(ICharacterName? characterName) { unchecked { - int hash = 5; + var hash = 5; if (CharacterName != null) { hash ^= 397 * CharacterName.GetHashCode(); @@ -573,7 +573,7 @@ public GetHero_Hero_Friends_Nodes_Human(ICharacterName? characterName) { unchecked { - int hash = 5; + var hash = 5; if (CharacterName != null) { hash ^= 397 * CharacterName.GetHashCode(); @@ -1229,7 +1229,7 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -1310,7 +1310,7 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -1455,7 +1455,7 @@ public partial class StarWarsGetFriendsDeferInListClientEntityIdFactory : global {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Droid" => ParseDroidEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs index 0003d00bbe4..fe56e7a0301 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs @@ -163,7 +163,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -229,7 +229,7 @@ public FriendsList(global::StrawberryShake.CodeGeneration.CSharp.Integration.Sta { unchecked { - int hash = 5; + var hash = 5; if (Friends != null) { hash ^= 397 * Friends.GetHashCode(); @@ -298,7 +298,7 @@ public GetHero_Hero_Droid(global::System.String name, IFriendsList? friendsListL { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (FriendsListLabel != null) { @@ -374,7 +374,7 @@ public GetHero_Hero_Human(global::System.String name, IFriendsList? friendsListL { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (FriendsListLabel != null) { @@ -453,7 +453,7 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic { unchecked { - int hash = 5; + var hash = 5; if (Nodes != null) { foreach (var Nodes_elm in Nodes) @@ -525,7 +525,7 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -587,7 +587,7 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -1271,7 +1271,7 @@ public FriendsList Map(global::StrawberryShake.CodeGeneration.CSharp.Integration } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -1385,7 +1385,7 @@ public FriendsList Map(global::StrawberryShake.CodeGeneration.CSharp.Integration } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -1464,7 +1464,7 @@ public partial class StarWarsGetFriendsDeferredClientEntityIdFactory : global::S {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Character" => ParseCharacterEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs index 4ad72c48512..e601d77133e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs @@ -154,7 +154,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -223,7 +223,7 @@ public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.Co { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Friends != null) { @@ -293,7 +293,7 @@ public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.Co { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Friends != null) { @@ -366,7 +366,7 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic { unchecked { - int hash = 5; + var hash = 5; if (Nodes != null) { foreach (var Nodes_elm in Nodes) @@ -438,7 +438,7 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -500,7 +500,7 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs index fc08c657afb..1c4a9b0e2e9 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs @@ -161,7 +161,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -230,7 +230,7 @@ public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.Co { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Friends != null) { @@ -300,7 +300,7 @@ public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.Co { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Friends != null) { @@ -373,7 +373,7 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic { unchecked { - int hash = 5; + var hash = 5; if (Nodes != null) { foreach (var Nodes_elm in Nodes) @@ -445,7 +445,7 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -507,7 +507,7 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -1128,7 +1128,7 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -1209,7 +1209,7 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapIGetHero_Hero_Friends_Nodes(child, snapshot)); } @@ -1288,7 +1288,7 @@ public partial class StarWarsGetFriendsClientEntityIdFactory : global::Strawberr {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Droid" => ParseDroidEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs index 9e1f103d79b..2fd0916ec68 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs @@ -159,7 +159,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -225,7 +225,7 @@ public GetHero_Hero_Droid(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -287,7 +287,7 @@ public GetHero_Hero_Human(global::System.String name) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); return hash; } @@ -714,7 +714,7 @@ public partial class StarWarsGetHeroClientEntityIdFactory : global::StrawberrySh {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Droid" => ParseDroidEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs index a37e546f4db..97e17aa773d 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs @@ -160,7 +160,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -229,7 +229,7 @@ public GetHero_Hero_Droid(global::System.String name, global::System.Text.Json.J { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Traits != null) { @@ -299,7 +299,7 @@ public GetHero_Hero_Human(global::System.String name, global::System.Text.Json.J { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Traits != null) { @@ -759,7 +759,7 @@ public partial class StarWarsGetHeroTraitsClientEntityIdFactory : global::Strawb {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Droid" => ParseDroidEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs index 53052e60421..dc3272388fb 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs @@ -161,7 +161,7 @@ public IntrospectionQueryResult(global::StrawberryShake.CodeGeneration.CSharp.In { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * __schema.GetHashCode(); return hash; } @@ -253,7 +253,7 @@ public IntrospectionQuery___schema___Schema(global::StrawberryShake.CodeGenerati { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * QueryType.GetHashCode(); if (MutationType != null) { @@ -340,7 +340,7 @@ public IntrospectionQuery___schema_QueryType___Type(global::System.String? name) { unchecked { - int hash = 5; + var hash = 5; if (Name != null) { hash ^= 397 * Name.GetHashCode(); @@ -411,7 +411,7 @@ public IntrospectionQuery___schema_MutationType___Type(global::System.String? na { unchecked { - int hash = 5; + var hash = 5; if (Name != null) { hash ^= 397 * Name.GetHashCode(); @@ -482,7 +482,7 @@ public IntrospectionQuery___schema_SubscriptionType___Type(global::System.String { unchecked { - int hash = 5; + var hash = 5; if (Name != null) { hash ^= 397 * Name.GetHashCode(); @@ -574,7 +574,7 @@ public IntrospectionQuery___schema_Types___Type(global::StrawberryShake.CodeGene { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -706,7 +706,7 @@ public IntrospectionQuery___schema_Directives___Directive(global::System.String { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Description != null) { @@ -799,7 +799,7 @@ public IntrospectionQuery___schema_Types_Fields___Field(global::System.String na { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Description != null) { @@ -893,7 +893,7 @@ public IntrospectionQuery___schema_Types_InputFields___InputValue(global::System { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Description != null) { @@ -977,7 +977,7 @@ public IntrospectionQuery___schema_Types_Interfaces___Type(global::StrawberrySha { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1061,7 +1061,7 @@ public IntrospectionQuery___schema_Types_EnumValues___EnumValue(global::System.S { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Description != null) { @@ -1145,7 +1145,7 @@ public IntrospectionQuery___schema_Types_PossibleTypes___Type(global::Strawberry { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1232,7 +1232,7 @@ public IntrospectionQuery___schema_Directives_Args___InputValue(global::System.S { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Description != null) { @@ -1320,7 +1320,7 @@ public IntrospectionQuery___schema_Types_Fields_Args___InputValue(global::System { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Name.GetHashCode(); if (Description != null) { @@ -1404,7 +1404,7 @@ public IntrospectionQuery___schema_Types_Fields_Type___Type(global::StrawberrySh { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1487,7 +1487,7 @@ public IntrospectionQuery___schema_Types_InputFields_Type___Type(global::Strawbe { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1570,7 +1570,7 @@ public IntrospectionQuery___schema_Types_Interfaces_OfType___Type(global::Strawb { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1653,7 +1653,7 @@ public IntrospectionQuery___schema_Types_PossibleTypes_OfType___Type(global::Str { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1736,7 +1736,7 @@ public IntrospectionQuery___schema_Directives_Args_Type___Type(global::Strawberr { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1819,7 +1819,7 @@ public IntrospectionQuery___schema_Types_Fields_Args_Type___Type(global::Strawbe { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1902,7 +1902,7 @@ public IntrospectionQuery___schema_Types_Fields_Type_OfType___Type(global::Straw { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -1985,7 +1985,7 @@ public IntrospectionQuery___schema_Types_InputFields_Type_OfType___Type(global:: { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -2068,7 +2068,7 @@ public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type(global: { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -2148,7 +2148,7 @@ public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type( { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * Kind.GetHashCode(); if (Name != null) { @@ -4648,7 +4648,7 @@ public partial class StarWarsIntrospectionClientEntityIdFactory : global::Strawb {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { _ => throw new global::System.NotSupportedException()}; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs index 9c35c5ea9b1..15f2441502f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs @@ -205,7 +205,7 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * OnReview.GetHashCode(); return hash; } @@ -276,7 +276,7 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * __typename.GetHashCode(); hash ^= 397 * Stars.GetHashCode(); if (Commentary != null) @@ -645,7 +645,7 @@ public partial class StarWarsOnReviewSubCompletionClientEntityIdFactory : global {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { _ => throw new global::System.NotSupportedException()}; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs index a06f7b0e20d..e01528c5c42 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs @@ -157,7 +157,7 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * OnReview.GetHashCode(); return hash; } @@ -228,7 +228,7 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * __typename.GetHashCode(); hash ^= 397 * Stars.GetHashCode(); if (Commentary != null) @@ -589,7 +589,7 @@ public partial class StarWarsOnReviewSubGraphQLSSEClientEntityIdFactory : global {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { _ => throw new global::System.NotSupportedException()}; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs index e4ee0b1b7a7..5772fbd6869 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs @@ -154,7 +154,7 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * OnReview.GetHashCode(); return hash; } @@ -225,7 +225,7 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * __typename.GetHashCode(); hash ^= 397 * Stars.GetHashCode(); if (Commentary != null) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs index 34198774cd3..befa7c4fbeb 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs @@ -159,7 +159,7 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S { unchecked { - int hash = 5; + var hash = 5; if (Hero != null) { hash ^= 397 * Hero.GetHashCode(); @@ -228,7 +228,7 @@ public GetHero_Hero_Droid(global::System.String __typename) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * __typename.GetHashCode(); return hash; } @@ -293,7 +293,7 @@ public GetHero_Hero_Human(global::System.String __typename) { unchecked { - int hash = 5; + var hash = 5; hash ^= 397 * __typename.GetHashCode(); return hash; } @@ -719,7 +719,7 @@ public partial class StarWarsTypeNameOnInterfacesClientEntityIdFactory : global: {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Droid" => ParseDroidEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs index 990e8f76394..714b7b538a5 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs @@ -160,7 +160,7 @@ public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { searchResults.Add(MapISearchHero_Search(child, snapshot)); } @@ -898,7 +898,7 @@ public partial class StarWarsTypeNameOnUnionsClientEntityIdFactory : global::Str {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Starship" => ParseStarshipEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs index 3758ad08d25..6c661ba1786 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs @@ -162,7 +162,7 @@ public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { searchResults.Add(MapISearchHero_Search(child, snapshot)); } @@ -1298,7 +1298,7 @@ public SearchHero_Search_Human Map(global::StrawberryShake.CodeGeneration.CSharp } var characters = new global::System.Collections.Generic.List(); - foreach (global::StrawberryShake.EntityId? child in list) + foreach (var child in list) { characters.Add(MapISearchHero_Search_Friends_Nodes(child, snapshot)); } @@ -1398,7 +1398,7 @@ public partial class StarWarsUnionListClientEntityIdFactory : global::Strawberry {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { "Starship" => ParseStarshipEntityId(obj, __typename), diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs index 86f5abb35f5..e7e29e5c433 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs @@ -161,7 +161,7 @@ public TestUploadResult(global::System.String? upload) { unchecked { - int hash = 5; + var hash = 5; if (Upload != null) { hash ^= 397 * Upload.GetHashCode(); @@ -274,7 +274,7 @@ public partial class TestInput : global::StrawberryShake.CodeGeneration.CSharp.I { unchecked { - int hash = 5; + var hash = 5; if (Bar != null) { hash ^= 397 * Bar.GetHashCode(); @@ -394,7 +394,7 @@ public partial class BarInput : global::StrawberryShake.CodeGeneration.CSharp.In { unchecked { - int hash = 5; + var hash = 5; if (Baz != null) { hash ^= 397 * Baz.GetHashCode(); @@ -514,7 +514,7 @@ public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.In { unchecked { - int hash = 5; + var hash = 5; if (File != null) { hash ^= 397 * File.GetHashCode(); @@ -1089,7 +1089,7 @@ public partial class UploadScalarClientEntityIdFactory : global::StrawberryShake {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { _ => throw new global::System.NotSupportedException()}; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs index d3dd1553795..3cd761d775c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs @@ -161,7 +161,7 @@ public TestUploadResult(global::System.String? upload) { unchecked { - int hash = 5; + var hash = 5; if (Upload != null) { hash ^= 397 * Upload.GetHashCode(); @@ -274,7 +274,7 @@ public partial class TestInput : global::StrawberryShake.CodeGeneration.CSharp.I { unchecked { - int hash = 5; + var hash = 5; if (Bar != null) { hash ^= 397 * Bar.GetHashCode(); @@ -394,7 +394,7 @@ public partial class BarInput : global::StrawberryShake.CodeGeneration.CSharp.In { unchecked { - int hash = 5; + var hash = 5; if (Baz != null) { hash ^= 397 * Baz.GetHashCode(); @@ -514,7 +514,7 @@ public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.In { unchecked { - int hash = 5; + var hash = 5; if (File != null) { hash ^= 397 * File.GetHashCode(); @@ -1089,7 +1089,7 @@ public partial class UploadScalar_InMemoryClientEntityIdFactory : global::Strawb {Indented = false}; public global::StrawberryShake.EntityId Parse(global::System.Text.Json.JsonElement obj) { - global::System.String __typename = obj.GetProperty("__typename").GetString()!; + var __typename = obj.GetProperty("__typename").GetString()!; return __typename switch { _ => throw new global::System.NotSupportedException()};