diff --git a/src/HotChocolate/Core/src/Abstractions/WellKnownDirectives.cs b/src/HotChocolate/Core/src/Abstractions/WellKnownDirectives.cs index 9126408eb4b..ed741877439 100644 --- a/src/HotChocolate/Core/src/Abstractions/WellKnownDirectives.cs +++ b/src/HotChocolate/Core/src/Abstractions/WellKnownDirectives.cs @@ -69,4 +69,14 @@ public static class WellKnownDirectives /// The name of the @tag argument name. /// public const string Name = "name"; + + /// + /// The name of the @semanticNonNull directive. + /// + public const string SemanticNonNull = "semanticNonNull"; + + /// + /// The name of the @semanticNonNull argument levels. + /// + public const string Levels = "levels"; } diff --git a/src/HotChocolate/Core/src/Abstractions/WellKnownMiddleware.cs b/src/HotChocolate/Core/src/Abstractions/WellKnownMiddleware.cs index d7d31265e9d..be6fa2bb050 100644 --- a/src/HotChocolate/Core/src/Abstractions/WellKnownMiddleware.cs +++ b/src/HotChocolate/Core/src/Abstractions/WellKnownMiddleware.cs @@ -90,4 +90,9 @@ public static class WellKnownMiddleware /// The key identifies the authorization middleware. /// public const string Authorization = "HotChocolate.Authorization"; + + /// + /// This key identifies the semantic-non-null middleware. + /// + public const string SemanticNonNull = "HotChocolate.Types.SemanticNonNull"; } diff --git a/src/HotChocolate/Core/src/Types/IReadOnlySchemaOptions.cs b/src/HotChocolate/Core/src/Types/IReadOnlySchemaOptions.cs index 78b8062ffe9..ebe4e315e46 100644 --- a/src/HotChocolate/Core/src/Types/IReadOnlySchemaOptions.cs +++ b/src/HotChocolate/Core/src/Types/IReadOnlySchemaOptions.cs @@ -165,6 +165,12 @@ public interface IReadOnlySchemaOptions /// bool EnableStream { get; } + /// + /// Enables the @semanticNonNull directive. + /// This feature is experimental and might be changed or removed in the future. + /// + bool EnableSemanticNonNull { get; } + /// /// Specifies the maximum allowed nodes that can be fetched at once through the nodes field. /// diff --git a/src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs b/src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs index 6d9cddc987c..82690e93df9 100644 --- a/src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs +++ b/src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs @@ -11,46 +11,32 @@ namespace HotChocolate.Properties { using System; - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class TypeResources { - private static global::System.Resources.ResourceManager resourceMan; + private static System.Resources.ResourceManager resourceMan; - private static global::System.Globalization.CultureInfo resourceCulture; + private static System.Globalization.CultureInfo resourceCulture; - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal TypeResources() { } - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Resources.ResourceManager ResourceManager { get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HotChocolate.Properties.TypeResources", typeof(TypeResources).Assembly); + if (object.Equals(null, resourceMan)) { + System.Resources.ResourceManager temp = new System.Resources.ResourceManager("HotChocolate.Properties.TypeResources", typeof(TypeResources).Assembly); resourceMan = temp; } return resourceMan; } } - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -59,2938 +45,1971 @@ internal TypeResources() { } } - /// - /// Looks up a localized string similar to Cycle in object graph detected.. - /// - internal static string AnyType_CycleInObjectGraph { - get { - return ResourceManager.GetString("AnyType_CycleInObjectGraph", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An Applied Directive is an instances of a directive as applied to a schema element. This type is NOT specified by the graphql specification presently.. - /// - internal static string AppliedDirective_Description { - get { - return ResourceManager.GetString("AppliedDirective_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The argument `{0}` has no type. Specify the type with `.Argument("{0}", a.Type<MyType>())` to fix this issue.. - /// - internal static string Argument_TypeIsNull { + internal static string ThrowHelper_MissingDirectiveIfArgument { get { - return ResourceManager.GetString("Argument_TypeIsNull", resourceCulture); + return ResourceManager.GetString("ThrowHelper_MissingDirectiveIfArgument", resourceCulture); } } - /// - /// Looks up a localized string similar to The argument type has to be an input-type.. - /// internal static string ArgumentDescriptor_InputTypeViolation { get { return ResourceManager.GetString("ArgumentDescriptor_InputTypeViolation", resourceCulture); } } - /// - /// Looks up a localized string similar to Argument `{0}` of non-null type `{1}` must not be null.. - /// internal static string ArgumentValueBuilder_NonNull { get { return ResourceManager.GetString("ArgumentValueBuilder_NonNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified binding cannot be handled.. - /// - internal static string BindingCompiler_AddBinding_BindingCannotBeHandled { - get { - return ResourceManager.GetString("BindingCompiler_AddBinding_BindingCannotBeHandled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The `Boolean` scalar type represents `true` or `false`.. - /// internal static string BooleanType_Description { get { return ResourceManager.GetString("BooleanType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The `Byte` scalar type represents non-fractional whole numeric values. Byte can represent values between 0 and 255.. - /// internal static string ByteType_Description { get { return ResourceManager.GetString("ByteType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Could not resolve the claims principal.. - /// - internal static string ClaimsPrincipalParameterExpressionBuilder_NoClaimsFound { - get { - return ResourceManager.GetString("ClaimsPrincipalParameterExpressionBuilder_NoClaimsFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A segment of a collection.. - /// - internal static string CollectionSegmentType_Description { - get { - return ResourceManager.GetString("CollectionSegmentType_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A flattened list of the items.. - /// - internal static string CollectionSegmentType_Items_Description { - get { - return ResourceManager.GetString("CollectionSegmentType_Items_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Information to aid in pagination.. - /// - internal static string CollectionSegmentType_PageInfo_Description { - get { - return ResourceManager.GetString("CollectionSegmentType_PageInfo_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified IComplexTypeFieldBindingBuilder-implementation is not supported.. - /// internal static string ComplexTypeBindingBuilder_FieldBuilderNotSupported { get { return ResourceManager.GetString("ComplexTypeBindingBuilder_FieldBuilderNotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to The field binding builder is not completed and cannot be added.. - /// internal static string ComplexTypeBindingBuilder_FieldNotComplete { get { return ResourceManager.GetString("ComplexTypeBindingBuilder_FieldNotComplete", resourceCulture); } } - /// - /// Looks up a localized string similar to A connection to a list of items.. - /// - internal static string ConnectionType_Description { - get { - return ResourceManager.GetString("ConnectionType_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A list of edges.. - /// - internal static string ConnectionType_Edges_Description { - get { - return ResourceManager.GetString("ConnectionType_Edges_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A flattened list of the nodes.. - /// - internal static string ConnectionType_Nodes_Description { - get { - return ResourceManager.GetString("ConnectionType_Nodes_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Information to aid in pagination.. - /// - internal static string ConnectionType_PageInfo_Description { - get { - return ResourceManager.GetString("ConnectionType_PageInfo_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Identifies the total count of items in the connection.. - /// - internal static string ConnectionType_TotalCount_Description { - get { - return ResourceManager.GetString("ConnectionType_TotalCount_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The DataLoader key cannot be null or empty.. - /// internal static string DataLoaderRegistry_KeyNullOrEmpty { get { return ResourceManager.GetString("DataLoaderRegistry_KeyNullOrEmpty", resourceCulture); } } - /// - /// Looks up a localized string similar to The DataLoader `{0}` needs to be register with the dependency injection provider.. - /// - internal static string DataLoaderResolverContextExtensions_CreateDataLoader_AbstractType { - get { - return ResourceManager.GetString("DataLoaderResolverContextExtensions_CreateDataLoader_AbstractType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to create DataLoader `{0}`.. - /// - internal static string DataLoaderResolverContextExtensions_CreateDataLoader_UnableToCreate { - get { - return ResourceManager.GetString("DataLoaderResolverContextExtensions_CreateDataLoader_UnableToCreate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No DataLoader registry was registered with your dependency injection.. - /// internal static string DataLoaderResolverContextExtensions_RegistryIsNull { get { return ResourceManager.GetString("DataLoaderResolverContextExtensions_RegistryIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to register a DataLoader with your DataLoader registry.. - /// internal static string DataLoaderResolverContextExtensions_UnableToRegister { get { return ResourceManager.GetString("DataLoaderResolverContextExtensions_UnableToRegister", resourceCulture); } } - /// - /// Looks up a localized string similar to The `DateTime` scalar represents an ISO-8601 compliant date time type.. - /// internal static string DateTimeType_Description { get { return ResourceManager.GetString("DateTimeType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The `Date` scalar represents an ISO-8601 compliant date type.. - /// internal static string DateType_Description { get { return ResourceManager.GetString("DateType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The `Decimal` scalar type represents a decimal floating-point number.. - /// internal static string DecimalType_Description { get { return ResourceManager.GetString("DecimalType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The DataLoader `{0}` was not of the requested type `{1}`.. - /// - internal static string DefaultDataLoaderRegistry_GetOrRegister { - get { - return ResourceManager.GetString("DefaultDataLoaderRegistry_GetOrRegister", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The fieldName cannot be null or empty.. - /// - internal static string DefaultNamingConventions_FormatFieldName_EmptyOrNull { - get { - return ResourceManager.GetString("DefaultNamingConventions_FormatFieldName_EmptyOrNull", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Only methods are allowed.. - /// - internal static string DefaultResolverCompilerService_CompileSubscribe_OnlyMethodsAllowed { - get { - return ResourceManager.GetString("DefaultResolverCompilerService_CompileSubscribe_OnlyMethodsAllowed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The public method should already have ensured that we do not have members other than method or property at this point.. - /// - internal static string DefaultResolverCompilerService_CreateResolver_ArgumentValidationError { - get { - return ResourceManager.GetString("DefaultResolverCompilerService_CreateResolver_ArgumentValidationError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified member has to be a method or a property.. - /// internal static string DefaultTypeInspector_MemberInvalid { get { return ResourceManager.GetString("DefaultTypeInspector_MemberInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`.. - /// - internal static string DeferDirectiveType_Description { - get { - return ResourceManager.GetString("DeferDirectiveType_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Deferred when true.. - /// - internal static string DeferDirectiveType_If_Description { - get { - return ResourceManager.GetString("DeferDirectiveType_If_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to.. - /// - internal static string DeferDirectiveType_Label_Description { - get { - return ResourceManager.GetString("DeferDirectiveType_Label_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Only type system objects are allowed as schema type.. - /// internal static string DependencyDescriptorBase_OnlyTsoIsAllowed { get { return ResourceManager.GetString("DependencyDescriptorBase_OnlyTsoIsAllowed", resourceCulture); } } - /// - /// Looks up a localized string similar to Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark).. - /// - internal static string DeprecatedDirectiveType_ReasonDescription { - get { - return ResourceManager.GetString("DeprecatedDirectiveType_ReasonDescription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values.. - /// - internal static string DeprecatedDirectiveType_TypeDescription { - get { - return ResourceManager.GetString("DeprecatedDirectiveType_TypeDescription", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. - /// - ///In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.. - /// - internal static string Directive_Description { - get { - return ResourceManager.GetString("Directive_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The argument name is invalid.. - /// - internal static string Directive_GetArgument_ArgumentNameIsInvalid { - get { - return ResourceManager.GetString("Directive_GetArgument_ArgumentNameIsInvalid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The directive '{0}' has no argument with the name '{1}'.. - /// - internal static string Directive_GetArgumentValue_UnknownArgument { - get { - return ResourceManager.GetString("Directive_GetArgumentValue_UnknownArgument", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use `locations`.. - /// - internal static string Directive_UseLocation { - get { - return ResourceManager.GetString("Directive_UseLocation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Directive arguments can have names and values. The values are in graphql SDL syntax printed as a string. This type is NOT specified by the graphql specification presently.. - /// - internal static string DirectiveArgument_Description { - get { - return ResourceManager.GetString("DirectiveArgument_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified directive `@{0}` is unique and cannot be added twice.. - /// internal static string DirectiveCollection_DirectiveIsUnique { get { return ResourceManager.GetString("DirectiveCollection_DirectiveIsUnique", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified directive `@{0}` is not allowed on the current location `{1}`.. - /// internal static string DirectiveCollection_LocationNotAllowed { get { return ResourceManager.GetString("DirectiveCollection_LocationNotAllowed", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an argument definition. - /// internal static string DirectiveLocation_ArgumentDefinition { get { return ResourceManager.GetString("DirectiveLocation_ArgumentDefinition", resourceCulture); } } - /// - /// Looks up a localized string similar to A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.. - /// internal static string DirectiveLocation_Description { get { return ResourceManager.GetString("DirectiveLocation_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an enum definition.. - /// internal static string DirectiveLocation_Enum { get { return ResourceManager.GetString("DirectiveLocation_Enum", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an enum value definition.. - /// internal static string DirectiveLocation_EnumValue { get { return ResourceManager.GetString("DirectiveLocation_EnumValue", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a field.. - /// internal static string DirectiveLocation_Field { get { return ResourceManager.GetString("DirectiveLocation_Field", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a field definition.. - /// internal static string DirectiveLocation_FieldDefinition { get { return ResourceManager.GetString("DirectiveLocation_FieldDefinition", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a fragment definition.. - /// internal static string DirectiveLocation_FragmentDefinition { get { return ResourceManager.GetString("DirectiveLocation_FragmentDefinition", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a fragment spread.. - /// internal static string DirectiveLocation_FragmentSpread { get { return ResourceManager.GetString("DirectiveLocation_FragmentSpread", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an inline fragment.. - /// internal static string DirectiveLocation_InlineFragment { get { return ResourceManager.GetString("DirectiveLocation_InlineFragment", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an input object field definition.. - /// internal static string DirectiveLocation_InputFieldDefinition { get { return ResourceManager.GetString("DirectiveLocation_InputFieldDefinition", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an input object type definition.. - /// internal static string DirectiveLocation_InputObject { get { return ResourceManager.GetString("DirectiveLocation_InputObject", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an interface definition.. - /// internal static string DirectiveLocation_Interface { get { return ResourceManager.GetString("DirectiveLocation_Interface", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a mutation operation.. - /// internal static string DirectiveLocation_Mutation { get { return ResourceManager.GetString("DirectiveLocation_Mutation", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to an object type definition.. - /// internal static string DirectiveLocation_Object { get { return ResourceManager.GetString("DirectiveLocation_Object", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a query operation.. - /// internal static string DirectiveLocation_Query { get { return ResourceManager.GetString("DirectiveLocation_Query", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a scalar definition.. - /// internal static string DirectiveLocation_Scalar { get { return ResourceManager.GetString("DirectiveLocation_Scalar", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a schema definition.. - /// internal static string DirectiveLocation_Schema { get { return ResourceManager.GetString("DirectiveLocation_Schema", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a subscription operation.. - /// internal static string DirectiveLocation_Subscription { get { return ResourceManager.GetString("DirectiveLocation_Subscription", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a union definition.. - /// internal static string DirectiveLocation_Union { get { return ResourceManager.GetString("DirectiveLocation_Union", resourceCulture); } } - /// - /// Looks up a localized string similar to Location adjacent to a variable definition.. - /// - internal static string DirectiveLocation_VariableDefinition { + internal static string DirectiveTypeDescriptor_OnlyProperties { get { - return ResourceManager.GetString("DirectiveLocation_VariableDefinition", resourceCulture); + return ResourceManager.GetString("DirectiveTypeDescriptor_OnlyProperties", resourceCulture); + } + } + + internal static string DirectiveTypeFactory_LocationNotSupported { + get { + return ResourceManager.GetString("DirectiveTypeFactory_LocationNotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to The `{0}` directive does not declare any location on which it is valid.. - /// internal static string DirectiveType_NoLocations { get { return ResourceManager.GetString("DirectiveType_NoLocations", resourceCulture); } } - /// - /// Looks up a localized string similar to Replace Middleware with `Use`.. - /// internal static string DirectiveType_ReplaceWithUse { get { return ResourceManager.GetString("DirectiveType_ReplaceWithUse", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to convert the argument value to the specified type.. - /// internal static string DirectiveType_UnableToConvert { get { return ResourceManager.GetString("DirectiveType_UnableToConvert", resourceCulture); } } - /// - /// Looks up a localized string similar to Only property expressions are allowed to describe a directive type argument.. - /// - internal static string DirectiveTypeDescriptor_OnlyProperties { + internal static string Directive_Description { get { - return ResourceManager.GetString("DirectiveTypeDescriptor_OnlyProperties", resourceCulture); + return ResourceManager.GetString("Directive_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified location `{0}` is not supported.. - /// - internal static string DirectiveTypeFactory_LocationNotSupported { + internal static string Directive_UseLocation { get { - return ResourceManager.GetString("DirectiveTypeFactory_LocationNotSupported", resourceCulture); + return ResourceManager.GetString("Directive_UseLocation", resourceCulture); } } - /// - /// Looks up a localized string similar to A cursor for use in pagination.. - /// - internal static string EdgeType_Cursor_Description { + internal static string EnumTypeExtension_CannotMerge { get { - return ResourceManager.GetString("EdgeType_Cursor_Description", resourceCulture); + return ResourceManager.GetString("EnumTypeExtension_CannotMerge", resourceCulture); } } - /// - /// Looks up a localized string similar to An edge in a connection.. - /// - internal static string EdgeType_Description { + internal static string EnumTypeExtension_ValueTypeInvalid { get { - return ResourceManager.GetString("EdgeType_Description", resourceCulture); + return ResourceManager.GetString("EnumTypeExtension_ValueTypeInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to Edge types that have a non-object node are not supported.. - /// - internal static string EdgeType_IsInstanceOfType_NonObject { + internal static string EnumType_NoValues { get { - return ResourceManager.GetString("EdgeType_IsInstanceOfType_NonObject", resourceCulture); + return ResourceManager.GetString("EnumType_NoValues", resourceCulture); } } - /// - /// Looks up a localized string similar to The item at the end of the edge.. - /// - internal static string EdgeType_Node_Description { + internal static string EnumValue_Description { get { - return ResourceManager.GetString("EdgeType_Node_Description", resourceCulture); + return ResourceManager.GetString("EnumValue_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The enum type `{0}` has no values.. - /// - internal static string EnumType_NoValues { + internal static string EnumValue_ValueIsNull { get { - return ResourceManager.GetString("EnumType_NoValues", resourceCulture); + return ResourceManager.GetString("EnumValue_ValueIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The enum type extension can only be merged with an enum type.. - /// - internal static string EnumTypeExtension_CannotMerge { + internal static string FieldInitHelper_InvalidDefaultValue { get { - return ResourceManager.GetString("EnumTypeExtension_CannotMerge", resourceCulture); + return ResourceManager.GetString("FieldInitHelper_InvalidDefaultValue", resourceCulture); } } - /// - /// Looks up a localized string similar to The enum value `{0}` of the enum type extension is not assignable with the target enum type.. - /// - internal static string EnumTypeExtension_ValueTypeInvalid { + internal static string FieldInitHelper_NoFields { get { - return ResourceManager.GetString("EnumTypeExtension_ValueTypeInvalid", resourceCulture); + return ResourceManager.GetString("FieldInitHelper_NoFields", resourceCulture); } } - /// - /// Looks up a localized string similar to One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.. - /// - internal static string EnumValue_Description { + internal static string Field_Description { get { - return ResourceManager.GetString("EnumValue_Description", resourceCulture); + return ResourceManager.GetString("Field_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The inner value of enum value cannot be null or empty.. - /// - internal static string EnumValue_ValueIsNull { + internal static string FloatType_Description { get { - return ResourceManager.GetString("EnumValue_ValueIsNull", resourceCulture); + return ResourceManager.GetString("FloatType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The field `{0}` must only declare additional arguments to an implemented field that are nullable.. - /// - internal static string ErrorHelper_AdditionalArgumentNotNullable { + internal static string IdType_Description { get { - return ResourceManager.GetString("ErrorHelper_AdditionalArgumentNotNullable", resourceCulture); + return ResourceManager.GetString("IdType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The argument `{0}` of the implemented field `{1}` must be defined. The field `{2}` must include an argument of the same name for every argument defined on the implemented field of the interface type `{3}`.. - /// - internal static string ErrorHelper_ArgumentNotImplemented { + internal static string InputField_CannotSetValue { get { - return ResourceManager.GetString("ErrorHelper_ArgumentNotImplemented", resourceCulture); + return ResourceManager.GetString("InputField_CannotSetValue", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to resolve the interface type. For more details look at the error object.. - /// - internal static string ErrorHelper_CompleteInterfacesHelper_UnableToResolveInterface { + internal static string InputObjectTypeExtension_CannotMerge { get { - return ResourceManager.GetString("ErrorHelper_CompleteInterfacesHelper_UnableToResolveInterface", resourceCulture); + return ResourceManager.GetString("InputObjectTypeExtension_CannotMerge", resourceCulture); } } - /// - /// Looks up a localized string similar to The argument `{0}` does not exist on the directive `{1}`.. - /// - internal static string ErrorHelper_DirectiveCollection_ArgumentDoesNotExist { + internal static string InputObjectType_CannotParseLiteral { get { - return ResourceManager.GetString("ErrorHelper_DirectiveCollection_ArgumentDoesNotExist", resourceCulture); + return ResourceManager.GetString("InputObjectType_CannotParseLiteral", resourceCulture); } } - /// - /// Looks up a localized string similar to The argument `{0}` of directive `{1}` mustn't be null.. - /// - internal static string ErrorHelper_DirectiveCollection_ArgumentNonNullViolation { + internal static string InputObjectType_NoFields { get { - return ResourceManager.GetString("ErrorHelper_DirectiveCollection_ArgumentNonNullViolation", resourceCulture); + return ResourceManager.GetString("InputObjectType_NoFields", resourceCulture); } } - /// - /// Looks up a localized string similar to The directive arguments have invalid values: '{0}' at {1}.. - /// - internal static string ErrorHelper_DirectiveCollection_ArgumentValueTypeIsWrong { + internal static string InputTypeNonNullCheck_ValueIsNull { get { - return ResourceManager.GetString("ErrorHelper_DirectiveCollection_ArgumentValueTypeIsWrong", resourceCulture); + return ResourceManager.GetString("InputTypeNonNullCheck_ValueIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The field `{0}` declares the data middleware `{1}` more than once.. - /// - internal static string ErrorHelper_DuplicateDataMiddlewareDetected_Message { + internal static string InputValue_DefaultValue { get { - return ResourceManager.GetString("ErrorHelper_DuplicateDataMiddlewareDetected_Message", resourceCulture); + return ResourceManager.GetString("InputValue_DefaultValue", resourceCulture); } } - /// - /// Looks up a localized string similar to The following {0}{1} `{2}` {3} declared multiple times on `{4}`.. - /// - internal static string ErrorHelper_DuplicateFieldName_Message { + internal static string InputValue_Description { get { - return ResourceManager.GetString("ErrorHelper_DuplicateFieldName_Message", resourceCulture); + return ResourceManager.GetString("InputValue_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The maximum number of nodes that can be fetched at once is {0}. This selection tried to fetch {1} nodes that exceeded the maximum allowed amount.. - /// - internal static string ErrorHelper_FetchedToManyNodesAtOnce { + internal static string InterfaceImplRule_ArgumentsDoNotMatch { get { - return ResourceManager.GetString("ErrorHelper_FetchedToManyNodesAtOnce", resourceCulture); + return ResourceManager.GetString("InterfaceImplRule_ArgumentsDoNotMatch", resourceCulture); } } - /// - /// Looks up a localized string similar to The field `{0}` must be implemented by {1} type `{2}`.. - /// - internal static string ErrorHelper_FieldNotImplemented { + internal static string InterfaceImplRule_ArgumentsNotImpl { get { - return ResourceManager.GetString("ErrorHelper_FieldNotImplemented", resourceCulture); + return ResourceManager.GetString("InterfaceImplRule_ArgumentsNotImpl", resourceCulture); } } - /// - /// Looks up a localized string similar to Cannot reference Input Object `{0}` within itself through a series of non-null fields `{1}`.. - /// - internal static string ErrorHelper_InputObjectMustNotHaveRecursiveNonNullableReferencesToSelf { + internal static string InterfaceImplRule_FieldNotImpl { get { - return ResourceManager.GetString("ErrorHelper_InputObjectMustNotHaveRecursiveNonNullableReferencesToSelf", resourceCulture); + return ResourceManager.GetString("InterfaceImplRule_FieldNotImpl", resourceCulture); } } - /// - /// Looks up a localized string similar to There is no object type implementing interface `{0}`.. - /// - internal static string ErrorHelper_InterfaceHasNoImplementation { + internal static string InterfaceImplRule_FieldTypeInvalid { get { - return ResourceManager.GetString("ErrorHelper_InterfaceHasNoImplementation", resourceCulture); + return ResourceManager.GetString("InterfaceImplRule_FieldTypeInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to The named argument `{0}` on field `{1}` must accept the same type `{2}` (invariant) as that named argument on the interface `{3}`.. - /// - internal static string ErrorHelper_InvalidArgumentType { + internal static string InterfaceImplRule_ReturnTypeInvalid { get { - return ResourceManager.GetString("ErrorHelper_InvalidArgumentType", resourceCulture); + return ResourceManager.GetString("InterfaceImplRule_ReturnTypeInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to Field `{0}` must return a type which is equal to or a subtype of (covariant) the return type `{1}` of the interface field.. - /// - internal static string ErrorHelper_InvalidFieldType { + internal static string InterfaceTypeExtension_CannotMerge { get { - return ResourceManager.GetString("ErrorHelper_InvalidFieldType", resourceCulture); + return ResourceManager.GetString("InterfaceTypeExtension_CannotMerge", resourceCulture); } } - /// - /// Looks up a localized string similar to The middleware pipeline order for the field `{0}` is invalid. Middleware order is important especially with data pipelines. The correct order of a data pipeline is as follows: UseDbContext -> UsePaging -> UseProjection -> UseFiltering -> UseSorting. You may omit any of these middleware or have other middleware in between but you need to abide by the overall order. Your order is: {1}.. - /// - internal static string ErrorHelper_MiddlewareOrderInvalid { + internal static string IntType_Description { get { - return ResourceManager.GetString("ErrorHelper_MiddlewareOrderInvalid", resourceCulture); + return ResourceManager.GetString("IntType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The {0} type `{1}` has to at least define one field in order to be valid.. - /// - internal static string ErrorHelper_NeedsOneAtLeastField { + internal static string LongType_Description { get { - return ResourceManager.GetString("ErrorHelper_NeedsOneAtLeastField", resourceCulture); + return ResourceManager.GetString("LongType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The node resolver `{0}` must specify exactly one argument.. - /// - internal static string ErrorHelper_NodeResolver_MustHaveExactlyOneIdArg { + internal static string NameType_Description { get { - return ResourceManager.GetString("ErrorHelper_NodeResolver_MustHaveExactlyOneIdArg", resourceCulture); + return ResourceManager.GetString("NameType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The node resolver `{0}` must return an object type.. - /// - internal static string ErrorHelper_NodeResolver_MustReturnObject { + internal static string Name_Cannot_BeEmpty { get { - return ResourceManager.GetString("ErrorHelper_NodeResolver_MustReturnObject", resourceCulture); + return ResourceManager.GetString("Name_Cannot_BeEmpty", resourceCulture); } } - /// - /// Looks up a localized string similar to The type `{0}` implementing the node interface must expose an id field.. - /// - internal static string ErrorHelper_NodeResolver_NodeTypeHasNoId { + internal static string ObjectFieldDescriptorBase_FieldType { get { - return ResourceManager.GetString("ErrorHelper_NodeResolver_NodeTypeHasNoId", resourceCulture); + return ResourceManager.GetString("ObjectFieldDescriptorBase_FieldType", resourceCulture); } } - /// - /// Looks up a localized string similar to The type `{0}` implements the node interface but does not provide a node resolver for re-fetching.. - /// - internal static string ErrorHelper_NodeResolverMissing { + internal static string ObjectTypeDescriptor_InterfaceBaseClass { get { - return ResourceManager.GetString("ErrorHelper_NodeResolverMissing", resourceCulture); + return ResourceManager.GetString("ObjectTypeDescriptor_InterfaceBaseClass", resourceCulture); } } - /// - /// Looks up a localized string similar to The type {0} is invalid because the runtime type is a {1}. It is not supported to have type system members as runtime types.. - /// - internal static string ErrorHelper_NoSchemaTypesAllowedAsRuntimeType { + internal static string InterfaceTypeDescriptor_InterfaceBaseClass { get { - return ResourceManager.GetString("ErrorHelper_NoSchemaTypesAllowedAsRuntimeType", resourceCulture); + return ResourceManager.GetString("InterfaceTypeDescriptor_InterfaceBaseClass", resourceCulture); } } - /// - /// Looks up a localized string similar to The {0} type must also declare all interfaces declared by implemented interfaces.. - /// - internal static string ErrorHelper_NotTransitivelyImplemented { + internal static string ObjectTypeDescriptor_MustBePropertyOrMethod { get { - return ResourceManager.GetString("ErrorHelper_NotTransitivelyImplemented", resourceCulture); + return ResourceManager.GetString("ObjectTypeDescriptor_MustBePropertyOrMethod", resourceCulture); } } - /// - /// Looks up a localized string similar to The field `{0}.{1}` has no resolver.. - /// - internal static string ErrorHelper_ObjectField_HasNoResolver { + internal static string ObjectTypeDescriptor_ResolveWith_NonAbstract { get { - return ResourceManager.GetString("ErrorHelper_ObjectField_HasNoResolver", resourceCulture); + return ResourceManager.GetString("ObjectTypeDescriptor_ResolveWith_NonAbstract", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to infer or resolve the type of field {0}.{1}. Try to explicitly provide the type like the following: `descriptor.Field("field").Type<List<StringType>>()`.. - /// - internal static string ErrorHelper_ObjectType_UnableToInferOrResolveType { + internal static string NodeDescriptor_MustBeMethod { get { - return ResourceManager.GetString("ErrorHelper_ObjectType_UnableToInferOrResolveType", resourceCulture); + return ResourceManager.GetString("NodeDescriptor_MustBeMethod", resourceCulture); } } - /// - /// Looks up a localized string similar to Oneof Input Object `{0}` must only have nullable fields without default values. Edit your type and make the field{1} `{2}` nullable and remove any defaults.. - /// - internal static string ErrorHelper_OneofInputObjectMustHaveNullableFieldsWithoutDefaults { + internal static string NodeDescriptor_IdMember { get { - return ResourceManager.GetString("ErrorHelper_OneofInputObjectMustHaveNullableFieldsWithoutDefaults", resourceCulture); + return ResourceManager.GetString("NodeDescriptor_IdMember", resourceCulture); } } - /// - /// Looks up a localized string similar to There is no node resolver registered for type `{0}`.. - /// - internal static string ErrorHelper_Relay_NoNodeResolver { + internal static string ObjectTypeDescriptor_Resolver_SchemaType { get { - return ResourceManager.GetString("ErrorHelper_Relay_NoNodeResolver", resourceCulture); + return ResourceManager.GetString("ObjectTypeDescriptor_Resolver_SchemaType", resourceCulture); } } - /// - /// Looks up a localized string similar to Required argument {0} cannot be deprecated.. - /// - internal static string ErrorHelper_RequiredArgumentCannotBeDeprecated { + internal static string Reflection_MemberMust_BeMethodOrProperty { get { - return ResourceManager.GetString("ErrorHelper_RequiredArgumentCannotBeDeprecated", resourceCulture); + return ResourceManager.GetString("Reflection_MemberMust_BeMethodOrProperty", resourceCulture); } } - /// - /// Looks up a localized string similar to Required input field {0} cannot be deprecated.. - /// - internal static string ErrorHelper_RequiredFieldCannotBeDeprecated { + internal static string ResolverCompiler_UnknownParameterType { get { - return ResourceManager.GetString("ErrorHelper_RequiredFieldCannotBeDeprecated", resourceCulture); + return ResourceManager.GetString("ResolverCompiler_UnknownParameterType", resourceCulture); } } - /// - /// Looks up a localized string similar to Field names starting with `__` are reserved for the GraphQL specification.. - /// - internal static string ErrorHelper_TwoUnderscoresNotAllowedField { + internal static string ResolverTypeBindingBuilder_FieldBuilderNotSupported { get { - return ResourceManager.GetString("ErrorHelper_TwoUnderscoresNotAllowedField", resourceCulture); + return ResourceManager.GetString("ResolverTypeBindingBuilder_FieldBuilderNotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to Argument names starting with `__` are reserved for the GraphQL specification.. - /// - internal static string ErrorHelper_TwoUnderscoresNotAllowedOnArgument { + internal static string ResolverTypeBindingBuilder_FieldNotComplete { get { - return ResourceManager.GetString("ErrorHelper_TwoUnderscoresNotAllowedOnArgument", resourceCulture); + return ResourceManager.GetString("ResolverTypeBindingBuilder_FieldNotComplete", resourceCulture); } } - /// - /// Looks up a localized string similar to Names starting with `__` are reserved for the GraphQL specification.. - /// - internal static string ErrorHelper_TwoUnderscoresNotAllowedOnDirectiveName { + internal static string Scalar_Cannot_Deserialize { get { - return ResourceManager.GetString("ErrorHelper_TwoUnderscoresNotAllowedOnDirectiveName", resourceCulture); + return ResourceManager.GetString("Scalar_Cannot_Deserialize", resourceCulture); } } - /// - /// Looks up a localized string similar to The event message parameter can only be used in a subscription context.. - /// - internal static string EventMessageParameterExpressionBuilder_MessageNotFound { + internal static string Scalar_Cannot_ParseLiteral { get { - return ResourceManager.GetString("EventMessageParameterExpressionBuilder_MessageNotFound", resourceCulture); + return ResourceManager.GetString("Scalar_Cannot_ParseLiteral", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified key `{0}` does not exist on `context.ContextData`.. - /// - internal static string ExpressionHelper_GetGlobalStateWithDefault_NoDefaults { + internal static string Scalar_Cannot_ParseValue { get { - return ResourceManager.GetString("ExpressionHelper_GetGlobalStateWithDefault_NoDefaults", resourceCulture); + return ResourceManager.GetString("Scalar_Cannot_ParseValue", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified key `{0}` does not exist on `context.ScopedContextData`.. - /// - internal static string ExpressionHelper_GetScopedStateWithDefault_NoDefaultValue { + internal static string Scalar_Cannot_Serialize { get { - return ResourceManager.GetString("ExpressionHelper_GetScopedStateWithDefault_NoDefaultValue", resourceCulture); + return ResourceManager.GetString("Scalar_Cannot_Serialize", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified context key does not exist.. - /// - internal static string ExpressionHelper_ResolveScopedContextData_KeyDoesNotExist { + internal static string SchemaBuilderExtensions_DirectiveTypeIsBaseType { get { - return ResourceManager.GetString("ExpressionHelper_ResolveScopedContextData_KeyDoesNotExist", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_DirectiveTypeIsBaseType", resourceCulture); } } - /// - /// Looks up a localized string similar to The non-generic IExecutable interface cannot be used as a type in the schema.. - /// - internal static string ExtendedTypeReferenceHandler_NonGenericExecutableNotAllowed { + internal static string SchemaBuilderExtensions_MustBeDirectiveType { get { - return ResourceManager.GetString("ExtendedTypeReferenceHandler_NonGenericExecutableNotAllowed", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_MustBeDirectiveType", resourceCulture); } } - /// - /// Looks up a localized string similar to Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.. - /// - internal static string Field_Description { + internal static string SchemaBuilderExtensions_SchemaIsEmpty { get { - return ResourceManager.GetString("Field_Description", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_SchemaIsEmpty", resourceCulture); } } - /// - /// Looks up a localized string similar to The max expected field count cannot be smaller than 1.. - /// - internal static string FieldInitHelper_CompleteFields_MaxFieldCountToSmall { + internal static string SchemaBuilder_Binding_CannotBeHandled { get { - return ResourceManager.GetString("FieldInitHelper_CompleteFields_MaxFieldCountToSmall", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_Binding_CannotBeHandled", resourceCulture); } } - /// - /// Looks up a localized string similar to Could not parse the native value of input field `{0}`.. - /// - internal static string FieldInitHelper_InvalidDefaultValue { + internal static string SchemaBuilder_Binding_Invalid { get { - return ResourceManager.GetString("FieldInitHelper_InvalidDefaultValue", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_Binding_Invalid", resourceCulture); } } - /// - /// Looks up a localized string similar to {0} `{1}` has no fields declared.. - /// - internal static string FieldInitHelper_NoFields { + internal static string SchemaBuilder_ISchemaNotTso { get { - return ResourceManager.GetString("FieldInitHelper_NoFields", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_ISchemaNotTso", resourceCulture); } } - /// - /// Looks up a localized string similar to The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).. - /// - internal static string FloatType_Description { + internal static string SchemaBuilder_NoQueryType { get { - return ResourceManager.GetString("FloatType_Description", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_NoQueryType", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to decode the id string.. - /// - internal static string IdSerializer_UnableToDecode { + internal static string SchemaBuilder_RootType_MustBeClass { get { - return ResourceManager.GetString("IdSerializer_UnableToDecode", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_RootType_MustBeClass", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to encode data.. - /// - internal static string IdSerializer_UnableToEncode { + internal static string SchemaBuilder_RootType_MustBeObjectType { get { - return ResourceManager.GetString("IdSerializer_UnableToEncode", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_RootType_MustBeObjectType", resourceCulture); } } - /// - /// Looks up a localized string similar to The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.. - /// - internal static string IdType_Description { + internal static string SchemaBuilder_RootType_NonGenericType { get { - return ResourceManager.GetString("IdType_Description", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_RootType_NonGenericType", resourceCulture); } } - /// - /// Looks up a localized string similar to Included when true.. - /// - internal static string IncludeDirectiveType_IfDescription { + internal static string SchemaBuilder_SchemaTypeInvalid { get { - return ResourceManager.GetString("IncludeDirectiveType_IfDescription", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_SchemaTypeInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to Directs the executor to include this field or fragment only when the `if` argument is true.. - /// - internal static string IncludeDirectiveType_TypeDescription { + internal static string SchemaErrorBuilder_MessageIsNull { get { - return ResourceManager.GetString("IncludeDirectiveType_TypeDescription", resourceCulture); + return ResourceManager.GetString("SchemaErrorBuilder_MessageIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to set the input field value.. - /// - internal static string InputField_CannotSetValue { + internal static string SchemaField_Description { get { - return ResourceManager.GetString("InputField_CannotSetValue", resourceCulture); + return ResourceManager.GetString("SchemaField_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The input object type can only parse object value literals.. - /// - internal static string InputObjectType_CannotParseLiteral { + internal static string SchemaSyntaxVisitor_UnknownOperationType { get { - return ResourceManager.GetString("InputObjectType_CannotParseLiteral", resourceCulture); + return ResourceManager.GetString("SchemaSyntaxVisitor_UnknownOperationType", resourceCulture); } } - /// - /// Looks up a localized string similar to The input object `{0}` does not have any fields.. - /// - internal static string InputObjectType_NoFields { + internal static string Schema_Description { get { - return ResourceManager.GetString("InputObjectType_NoFields", resourceCulture); + return ResourceManager.GetString("Schema_Description", resourceCulture); + } + } + + internal static string Schema_Directives { + get { + return ResourceManager.GetString("Schema_Directives", resourceCulture); + } + } + + internal static string Schema_MutationType { + get { + return ResourceManager.GetString("Schema_MutationType", resourceCulture); + } + } + + internal static string Schema_QueryType { + get { + return ResourceManager.GetString("Schema_QueryType", resourceCulture); + } + } + + internal static string Schema_SubscriptionType { + get { + return ResourceManager.GetString("Schema_SubscriptionType", resourceCulture); + } + } + + internal static string Schema_Types { + get { + return ResourceManager.GetString("Schema_Types", resourceCulture); + } + } + + internal static string ShortType_Description { + get { + return ResourceManager.GetString("ShortType_Description", resourceCulture); + } + } + + internal static string StringType_Description { + get { + return ResourceManager.GetString("StringType_Description", resourceCulture); + } + } + + internal static string String_Argument_NullOrEmpty { + get { + return ResourceManager.GetString("String_Argument_NullOrEmpty", resourceCulture); + } + } + + internal static string TypeConfiguration_ConfigureIsNull { + get { + return ResourceManager.GetString("TypeConfiguration_ConfigureIsNull", resourceCulture); + } + } + + internal static string TypeConfiguration_DefinitionIsNull { + get { + return ResourceManager.GetString("TypeConfiguration_DefinitionIsNull", resourceCulture); + } + } + + internal static string TypeDependency_MustBeSchemaType { + get { + return ResourceManager.GetString("TypeDependency_MustBeSchemaType", resourceCulture); + } + } + + internal static string TypeExtensions_InvalidStructure { + get { + return ResourceManager.GetString("TypeExtensions_InvalidStructure", resourceCulture); + } + } + + internal static string TypeExtensions_KindIsNotSupported { + get { + return ResourceManager.GetString("TypeExtensions_KindIsNotSupported", resourceCulture); + } + } + + internal static string TypeExtensions_NoListType { + get { + return ResourceManager.GetString("TypeExtensions_NoListType", resourceCulture); + } + } + + internal static string TypeExtensions_TypeIsNotOfT { + get { + return ResourceManager.GetString("TypeExtensions_TypeIsNotOfT", resourceCulture); + } + } + + internal static string TypeField_Description { + get { + return ResourceManager.GetString("TypeField_Description", resourceCulture); + } + } + + internal static string TypeInitializer_CannotResolveDependency { + get { + return ResourceManager.GetString("TypeInitializer_CannotResolveDependency", resourceCulture); + } + } + + internal static string TypeInitializer_CompleteName_Duplicate { + get { + return ResourceManager.GetString("TypeInitializer_CompleteName_Duplicate", resourceCulture); + } + } + + internal static string TypeInitializer_Merge_KindDoesNotMatch { + get { + return ResourceManager.GetString("TypeInitializer_Merge_KindDoesNotMatch", resourceCulture); + } + } + + internal static string TypeKind_Description { + get { + return ResourceManager.GetString("TypeKind_Description", resourceCulture); + } + } + + internal static string TypeKind_Enum { + get { + return ResourceManager.GetString("TypeKind_Enum", resourceCulture); + } + } + + internal static string TypeKind_InputObject { + get { + return ResourceManager.GetString("TypeKind_InputObject", resourceCulture); + } + } + + internal static string TypeKind_Interface { + get { + return ResourceManager.GetString("TypeKind_Interface", resourceCulture); + } + } + + internal static string TypeKind_List { + get { + return ResourceManager.GetString("TypeKind_List", resourceCulture); + } + } + + internal static string TypeKind_NonNull { + get { + return ResourceManager.GetString("TypeKind_NonNull", resourceCulture); + } + } + + internal static string TypeKind_Object { + get { + return ResourceManager.GetString("TypeKind_Object", resourceCulture); + } + } + + internal static string TypeKind_Scalar { + get { + return ResourceManager.GetString("TypeKind_Scalar", resourceCulture); + } + } + + internal static string TypeKind_Union { + get { + return ResourceManager.GetString("TypeKind_Union", resourceCulture); + } + } + + internal static string TypeNameField_Description { + get { + return ResourceManager.GetString("TypeNameField_Description", resourceCulture); + } + } + + internal static string TypeNameHelper_InvalidTypeStructure { + get { + return ResourceManager.GetString("TypeNameHelper_InvalidTypeStructure", resourceCulture); + } + } + + internal static string TypeNameHelper_OnlyTypeSystemObjectsAreAllowed { + get { + return ResourceManager.GetString("TypeNameHelper_OnlyTypeSystemObjectsAreAllowed", resourceCulture); } } - /// - /// Looks up a localized string similar to Only properties are allowed for input types.. - /// - internal static string InputObjectTypeDescriptor_OnlyProperties { + internal static string TypeResourceHelper_TypeNameEmptyOrNull { get { - return ResourceManager.GetString("InputObjectTypeDescriptor_OnlyProperties", resourceCulture); + return ResourceManager.GetString("TypeResourceHelper_TypeNameEmptyOrNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The input object type extension can only be merged with an input object type.. - /// - internal static string InputObjectTypeExtension_CannotMerge { + internal static string Type_Description { get { - return ResourceManager.GetString("InputObjectTypeExtension_CannotMerge", resourceCulture); + return ResourceManager.GetString("Type_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The input value of type `{0}` must not be null.. - /// - internal static string InputTypeNonNullCheck_ValueIsNull { + internal static string UnionTypeExtension_CannotMerge { get { - return ResourceManager.GetString("InputTypeNonNullCheck_ValueIsNull", resourceCulture); + return ResourceManager.GetString("UnionTypeExtension_CannotMerge", resourceCulture); } } - /// - /// Looks up a localized string similar to A GraphQL-formatted string representing the default value for this input value.. - /// - internal static string InputValue_DefaultValue { + internal static string VariableValueBuilder_InputType { get { - return ResourceManager.GetString("InputValue_DefaultValue", resourceCulture); + return ResourceManager.GetString("VariableValueBuilder_InputType", resourceCulture); } } - /// - /// Looks up a localized string similar to Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.. - /// - internal static string InputValue_Description { + internal static string VariableValueBuilder_InvalidValue { get { - return ResourceManager.GetString("InputValue_Description", resourceCulture); + return ResourceManager.GetString("VariableValueBuilder_InvalidValue", resourceCulture); } } - /// - /// Looks up a localized string similar to The arguments of the interface field {0} from interface {1} and {2} do not match and are implemented by object type {3}.. - /// - internal static string InterfaceImplRule_ArgumentsDoNotMatch { + internal static string VariableValueBuilder_NodeKind { get { - return ResourceManager.GetString("InterfaceImplRule_ArgumentsDoNotMatch", resourceCulture); + return ResourceManager.GetString("VariableValueBuilder_NodeKind", resourceCulture); } } - /// - /// Looks up a localized string similar to Object type {0} does not implement all arguments of field {1} from interface {2}.. - /// - internal static string InterfaceImplRule_ArgumentsNotImpl { + internal static string VariableValueBuilder_NonNull { get { - return ResourceManager.GetString("InterfaceImplRule_ArgumentsNotImpl", resourceCulture); + return ResourceManager.GetString("VariableValueBuilder_NonNull", resourceCulture); } } - /// - /// Looks up a localized string similar to Object type {0} does not implement the field {1} from interface {2}.. - /// - internal static string InterfaceImplRule_FieldNotImpl { + internal static string VariableValueBuilder_NonNull_In_Graph { get { - return ResourceManager.GetString("InterfaceImplRule_FieldNotImpl", resourceCulture); + return ResourceManager.GetString("VariableValueBuilder_NonNull_In_Graph", resourceCulture); } } - /// - /// Looks up a localized string similar to The return type of the interface field {0} from interface {1} and {2} do not match and are implemented by object type {3}.. - /// - internal static string InterfaceImplRule_FieldTypeInvalid { + internal static string VariableValueBuilder_VarNameEmpty { get { - return ResourceManager.GetString("InterfaceImplRule_FieldTypeInvalid", resourceCulture); + return ResourceManager.GetString("VariableValueBuilder_VarNameEmpty", resourceCulture); } } - /// - /// Looks up a localized string similar to The return type of the interface field {0} does not match the field declared by object type {1}.. - /// - internal static string InterfaceImplRule_ReturnTypeInvalid { + internal static string Argument_TypeIsNull { get { - return ResourceManager.GetString("InterfaceImplRule_ReturnTypeInvalid", resourceCulture); + return ResourceManager.GetString("Argument_TypeIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The interface base class cannot be used as interface implementation declaration.. - /// - internal static string InterfaceTypeDescriptor_InterfaceBaseClass { + internal static string NonNullType_NotAnInputType { get { - return ResourceManager.GetString("InterfaceTypeDescriptor_InterfaceBaseClass", resourceCulture); + return ResourceManager.GetString("NonNullType_NotAnInputType", resourceCulture); } } - /// - /// Looks up a localized string similar to A field of an interface can only be inferred from a property or a method.. - /// - internal static string InterfaceTypeDescriptor_MustBePropertyOrMethod { + internal static string NonNullType_TypeIsNunNullType { get { - return ResourceManager.GetString("InterfaceTypeDescriptor_MustBePropertyOrMethod", resourceCulture); + return ResourceManager.GetString("NonNullType_TypeIsNunNullType", resourceCulture); } } - /// - /// Looks up a localized string similar to The interface type extension can only be merged with an interface type.. - /// - internal static string InterfaceTypeExtension_CannotMerge { + internal static string NonNullType_ValueIsNull { get { - return ResourceManager.GetString("InterfaceTypeExtension_CannotMerge", resourceCulture); + return ResourceManager.GetString("NonNullType_ValueIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.. - /// - internal static string IntType_Description { + internal static string ObjectTypeExtension_CannotMerge { get { - return ResourceManager.GetString("IntType_Description", resourceCulture); + return ResourceManager.GetString("ObjectTypeExtension_CannotMerge", resourceCulture); } } - /// - /// Looks up a localized string similar to The `Long` scalar type represents non-fractional signed whole 64-bit numeric values. Long can represent values between -(2^63) and 2^63 - 1.. - /// - internal static string LongType_Description { + internal static string TypeSystemObjectBase_DefinitionIsNull { get { - return ResourceManager.GetString("LongType_Description", resourceCulture); + return ResourceManager.GetString("TypeSystemObjectBase_DefinitionIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The multiplier path scalar represents a valid GraphQL multiplier path string.. - /// - internal static string Name_Cannot_BeEmpty { + internal static string TypeSystemObjectBase_NameIsNull { get { - return ResourceManager.GetString("Name_Cannot_BeEmpty", resourceCulture); + return ResourceManager.GetString("TypeSystemObjectBase_NameIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The name scalar represents a valid GraphQL name as specified in the spec and can be used to refer to fields or types.. - /// - internal static string NameType_Description { + internal static string TypeSystemObject_DescriptionImmutable { get { - return ResourceManager.GetString("NameType_Description", resourceCulture); + return ResourceManager.GetString("TypeSystemObject_DescriptionImmutable", resourceCulture); } } - /// - /// Looks up a localized string similar to The ID field must be a property or a method.. - /// - internal static string NodeDescriptor_IdField_MustBePropertyOrMethod { + internal static string TypeSystemObject_NameImmutable { get { - return ResourceManager.GetString("NodeDescriptor_IdField_MustBePropertyOrMethod", resourceCulture); + return ResourceManager.GetString("TypeSystemObject_NameImmutable", resourceCulture); } } - /// - /// Looks up a localized string similar to An ID-member must be a property-expression or a method-call-expression.. - /// - internal static string NodeDescriptor_IdMember { + internal static string UnionType_MustHaveTypes { get { - return ResourceManager.GetString("NodeDescriptor_IdMember", resourceCulture); + return ResourceManager.GetString("UnionType_MustHaveTypes", resourceCulture); } } - /// - /// Looks up a localized string similar to A node-resolver-expression must be a method-call-expression.. - /// - internal static string NodeDescriptor_MustBeMethod { + internal static string UnionType_UnableToResolveType { get { - return ResourceManager.GetString("NodeDescriptor_MustBeMethod", resourceCulture); + return ResourceManager.GetString("UnionType_UnableToResolveType", resourceCulture); } } - /// - /// Looks up a localized string similar to The node interface is implemented by entities that have a global unique identifier.. - /// - internal static string NodeType_TypeDescription { + internal static string SchemaBuilder_MustBeSchemaType { get { - return ResourceManager.GetString("NodeType_TypeDescription", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_MustBeSchemaType", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type is not an input type.. - /// - internal static string NonNamedType_IsInstanceOfType_NotAnInputType { + internal static string TypeRegistrar_TypesInconsistent { get { - return ResourceManager.GetString("NonNamedType_IsInstanceOfType_NotAnInputType", resourceCulture); + return ResourceManager.GetString("TypeRegistrar_TypesInconsistent", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type is not an input type.. - /// - internal static string NonNullType_NotAnInputType { + internal static string TypeConversion_ConvertNotSupported { get { - return ResourceManager.GetString("NonNullType_NotAnInputType", resourceCulture); + return ResourceManager.GetString("TypeConversion_ConvertNotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to The inner type of non-null type must be a nullable type.. - /// - internal static string NonNullType_TypeIsNunNullType { + internal static string SchemaBuilder_Interceptor_NotSupported { get { - return ResourceManager.GetString("NonNullType_TypeIsNunNullType", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_Interceptor_NotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to A non null type cannot parse null value literals.. - /// - internal static string NonNullType_ValueIsNull { + internal static string IdSerializer_UnableToEncode { get { - return ResourceManager.GetString("NonNullType_ValueIsNull", resourceCulture); + return ResourceManager.GetString("IdSerializer_UnableToEncode", resourceCulture); } } - /// - /// Looks up a localized string similar to The field-type must be an output-type.. - /// - internal static string ObjectFieldDescriptorBase_FieldType { + internal static string IdSerializer_UnableToDecode { get { - return ResourceManager.GetString("ObjectFieldDescriptorBase_FieldType", resourceCulture); + return ResourceManager.GetString("IdSerializer_UnableToDecode", resourceCulture); } } - /// - /// Looks up a localized string similar to Cycle in object graph detected.. - /// - internal static string ObjectToDictionaryConverter_CycleInObjectGraph { + internal static string SchemaBuilder_Convention_NotSupported { get { - return ResourceManager.GetString("ObjectToDictionaryConverter_CycleInObjectGraph", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_Convention_NotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to The interface base class cannot be used as interface implementation declaration.. - /// - internal static string ObjectTypeDescriptor_InterfaceBaseClass { + internal static string TimeSpanType_Description { get { - return ResourceManager.GetString("ObjectTypeDescriptor_InterfaceBaseClass", resourceCulture); + return ResourceManager.GetString("TimeSpanType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to A field-expression must be a property-expression or a method-call-expression.. - /// - internal static string ObjectTypeDescriptor_MustBePropertyOrMethod { + internal static string DefaultDataLoaderRegistry_GetOrRegister { get { - return ResourceManager.GetString("ObjectTypeDescriptor_MustBePropertyOrMethod", resourceCulture); + return ResourceManager.GetString("DefaultDataLoaderRegistry_GetOrRegister", resourceCulture); } } - /// - /// Looks up a localized string similar to Schema types cannot be used as resolver types.. - /// - internal static string ObjectTypeDescriptor_Resolver_SchemaType { + internal static string DataLoaderResolverContextExtensions_CreateDataLoader_AbstractType { get { - return ResourceManager.GetString("ObjectTypeDescriptor_Resolver_SchemaType", resourceCulture); + return ResourceManager.GetString("DataLoaderResolverContextExtensions_CreateDataLoader_AbstractType", resourceCulture); } } - /// - /// Looks up a localized string similar to The resolver type {0} cannot be used, a non-abstract type is required.. - /// - internal static string ObjectTypeDescriptor_ResolveWith_NonAbstract { + internal static string DataLoaderResolverContextExtensions_CreateDataLoader_UnableToCreate { get { - return ResourceManager.GetString("ObjectTypeDescriptor_ResolveWith_NonAbstract", resourceCulture); + return ResourceManager.GetString("DataLoaderResolverContextExtensions_CreateDataLoader_UnableToCreate", resourceCulture); } } - /// - /// Looks up a localized string similar to The object type extension can only be merged with an object type.. - /// - internal static string ObjectTypeExtension_CannotMerge { + internal static string NonNamedType_IsInstanceOfType_NotAnInputType { get { - return ResourceManager.GetString("ObjectTypeExtension_CannotMerge", resourceCulture); + return ResourceManager.GetString("NonNamedType_IsInstanceOfType_NotAnInputType", resourceCulture); } } - /// - /// Looks up a localized string similar to The `@oneOf` directive is used within the type system definition language - /// to indicate: - /// - /// - an Input Object is a Oneof Input Object, or - /// - an Object Type's Field is a Oneof Field.. - /// - internal static string OneOfDirectiveType_Description { + internal static string RegisteredType_CompletionContext_Not_Initialized { get { - return ResourceManager.GetString("OneOfDirectiveType_Description", resourceCulture); + return ResourceManager.GetString("RegisteredType_CompletionContext_Not_Initialized", resourceCulture); } } - /// - /// Looks up a localized string similar to The member expression must specify a property or method that is public and that belongs to the type {0}. - /// - internal static string Reflection_MemberMust_BeMethodOrProperty { + internal static string RegisteredType_CompletionContext_Already_Set { get { - return ResourceManager.GetString("Reflection_MemberMust_BeMethodOrProperty", resourceCulture); + return ResourceManager.GetString("RegisteredType_CompletionContext_Already_Set", resourceCulture); } } - /// - /// Looks up a localized string similar to Member is not a method!. - /// - internal static string ReflectionUtils_ExtractMethod_MethodExpected { + internal static string DeferDirectiveType_Description { get { - return ResourceManager.GetString("ReflectionUtils_ExtractMethod_MethodExpected", resourceCulture); + return ResourceManager.GetString("DeferDirectiveType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The object is not yet ready for this action.. - /// - internal static string RegisteredType_Completion_NotYetReady { + internal static string DeferDirectiveType_Label_Description { get { - return ResourceManager.GetString("RegisteredType_Completion_NotYetReady", resourceCulture); + return ResourceManager.GetString("DeferDirectiveType_Label_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The completion context can only be set once.. - /// - internal static string RegisteredType_CompletionContext_Already_Set { + internal static string DeferDirectiveType_If_Description { get { - return ResourceManager.GetString("RegisteredType_CompletionContext_Already_Set", resourceCulture); + return ResourceManager.GetString("DeferDirectiveType_If_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The completion context has not been initialized.. - /// - internal static string RegisteredType_CompletionContext_Not_Initialized { + internal static string StreamDirectiveType_Description { get { - return ResourceManager.GetString("RegisteredType_CompletionContext_Not_Initialized", resourceCulture); + return ResourceManager.GetString("StreamDirectiveType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Fetches an object given its ID.. - /// - internal static string Relay_NodeField_Description { + internal static string StreamDirectiveType_Label_Description { get { - return ResourceManager.GetString("Relay_NodeField_Description", resourceCulture); + return ResourceManager.GetString("StreamDirectiveType_Label_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to ID of the object.. - /// - internal static string Relay_NodeField_Id_Description { + internal static string StreamDirectiveType_InitialCount_Description { get { - return ResourceManager.GetString("Relay_NodeField_Id_Description", resourceCulture); + return ResourceManager.GetString("StreamDirectiveType_InitialCount_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Lookup nodes by a list of IDs.. - /// - internal static string Relay_NodesField_Description { + internal static string StreamDirectiveType_If_Description { get { - return ResourceManager.GetString("Relay_NodesField_Description", resourceCulture); + return ResourceManager.GetString("StreamDirectiveType_If_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The list of node IDs.. - /// - internal static string Relay_NodesField_Ids_Description { + internal static string SchemaBuilder_AddRootType_TypeAlreadyRegistered { get { - return ResourceManager.GetString("Relay_NodesField_Ids_Description", resourceCulture); + return ResourceManager.GetString("SchemaBuilder_AddRootType_TypeAlreadyRegistered", resourceCulture); } } - /// - /// Looks up a localized string similar to A directive type mustn't be one of the base classes `DirectiveType` or `DirectiveType<T>` but must be a type inheriting from `DirectiveType` or `DirectiveType<T>`.. - /// - internal static string ResolverCompiler_UnknownParameterType { + internal static string NodeDescriptor_IdField_MustBePropertyOrMethod { get { - return ResourceManager.GetString("ResolverCompiler_UnknownParameterType", resourceCulture); + return ResourceManager.GetString("NodeDescriptor_IdField_MustBePropertyOrMethod", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified key `{0}` does not exist on `context.ContextData`. - /// - internal static string ResolverContextExtensions_ContextData_KeyNotFound { + internal static string DeprecatedDirectiveType_TypeDescription { get { - return ResourceManager.GetString("ResolverContextExtensions_ContextData_KeyNotFound", resourceCulture); + return ResourceManager.GetString("DeprecatedDirectiveType_TypeDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to The field name mustn't be null, empty or consist only of white spaces.. - /// - internal static string ResolverContextExtensions_IsSelected_FieldNameEmpty { + internal static string DeprecatedDirectiveType_ReasonDescription { get { - return ResourceManager.GetString("ResolverContextExtensions_IsSelected_FieldNameEmpty", resourceCulture); + return ResourceManager.GetString("DeprecatedDirectiveType_ReasonDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified key `{0}` does not exist on `context.LocalContextData`. - /// - internal static string ResolverContextExtensions_LocalContextData_KeyNotFound { + internal static string IncludeDirectiveType_TypeDescription { get { - return ResourceManager.GetString("ResolverContextExtensions_LocalContextData_KeyNotFound", resourceCulture); + return ResourceManager.GetString("IncludeDirectiveType_TypeDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified key `{0}` does not exist on `context.ScopedContextData`. - /// - internal static string ResolverContextExtensions_ScopedContextData_KeyNotFound { + internal static string IncludeDirectiveType_IfDescription { get { - return ResourceManager.GetString("ResolverContextExtensions_ScopedContextData_KeyNotFound", resourceCulture); + return ResourceManager.GetString("IncludeDirectiveType_IfDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified IResolverFieldBindingBuilder-implementation is not supported.. - /// - internal static string ResolverTypeBindingBuilder_FieldBuilderNotSupported { + internal static string SkipDirectiveType_TypeDescription { get { - return ResourceManager.GetString("ResolverTypeBindingBuilder_FieldBuilderNotSupported", resourceCulture); + return ResourceManager.GetString("SkipDirectiveType_TypeDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to The field binding builder is not completed and cannot be added.. - /// - internal static string ResolverTypeBindingBuilder_FieldNotComplete { + internal static string SkipDirectiveType_IfDescription { get { - return ResourceManager.GetString("ResolverTypeBindingBuilder_FieldNotComplete", resourceCulture); + return ResourceManager.GetString("SkipDirectiveType_IfDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to {0} cannot deserialize the given value.. - /// - internal static string Scalar_Cannot_Deserialize { + internal static string SpecifiedByDirectiveType_TypeDescription { get { - return ResourceManager.GetString("Scalar_Cannot_Deserialize", resourceCulture); + return ResourceManager.GetString("SpecifiedByDirectiveType_TypeDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to {0} cannot parse the given literal of type `{1}`.. - /// - internal static string Scalar_Cannot_ParseLiteral { + internal static string SpecifiedByDirectiveType_UrlDescription { get { - return ResourceManager.GetString("Scalar_Cannot_ParseLiteral", resourceCulture); + return ResourceManager.GetString("SpecifiedByDirectiveType_UrlDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to {0} cannot parse the given value of type `{1}`.. - /// - internal static string Scalar_Cannot_ParseValue { + internal static string NodeType_TypeDescription { get { - return ResourceManager.GetString("Scalar_Cannot_ParseValue", resourceCulture); + return ResourceManager.GetString("NodeType_TypeDescription", resourceCulture); } } - /// - /// Looks up a localized string similar to {0} cannot serialize the given value.. - /// - internal static string Scalar_Cannot_Serialize { + internal static string AnyType_CycleInObjectGraph { get { - return ResourceManager.GetString("Scalar_Cannot_Serialize", resourceCulture); + return ResourceManager.GetString("AnyType_CycleInObjectGraph", resourceCulture); } } - /// - /// Looks up a localized string similar to A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.. - /// - internal static string Schema_Description { + internal static string UuidType_FormatUnknown { get { - return ResourceManager.GetString("Schema_Description", resourceCulture); + return ResourceManager.GetString("UuidType_FormatUnknown", resourceCulture); } } - /// - /// Looks up a localized string similar to A list of all directives supported by this server.. - /// - internal static string Schema_Directives { + internal static string Directive_GetArgument_ArgumentNameIsInvalid { get { - return ResourceManager.GetString("Schema_Directives", resourceCulture); + return ResourceManager.GetString("Directive_GetArgument_ArgumentNameIsInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` does not exist.. - /// - internal static string Schema_GetDirectiveType_DoesNotExist { + internal static string AppliedDirective_Description { get { - return ResourceManager.GetString("Schema_GetDirectiveType_DoesNotExist", resourceCulture); + return ResourceManager.GetString("AppliedDirective_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to If this server supports mutation, the type that mutation operations will be rooted at.. - /// - internal static string Schema_MutationType { + internal static string DirectiveArgument_Description { get { - return ResourceManager.GetString("Schema_MutationType", resourceCulture); + return ResourceManager.GetString("DirectiveArgument_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The type that query operations will be rooted at.. - /// - internal static string Schema_QueryType { + internal static string ThrowHelper_UsePagingAttribute_NodeTypeUnknown { get { - return ResourceManager.GetString("Schema_QueryType", resourceCulture); + return ResourceManager.GetString("ThrowHelper_UsePagingAttribute_NodeTypeUnknown", resourceCulture); } } - /// - /// Looks up a localized string similar to If this server support subscription, the type that subscription operations will be rooted at.. - /// - internal static string Schema_SubscriptionType { + internal static string Schema_GetDirectiveType_DoesNotExist { get { - return ResourceManager.GetString("Schema_SubscriptionType", resourceCulture); + return ResourceManager.GetString("Schema_GetDirectiveType_DoesNotExist", resourceCulture); } } - /// - /// Looks up a localized string similar to A list of all types supported by this server.. - /// - internal static string Schema_Types { + internal static string ErrorHelper_ObjectField_HasNoResolver { get { - return ResourceManager.GetString("Schema_Types", resourceCulture); + return ResourceManager.GetString("ErrorHelper_ObjectField_HasNoResolver", resourceCulture); } } - /// - /// Looks up a localized string similar to The root type `{0}` has already been registered.. - /// - internal static string SchemaBuilder_AddRootType_TypeAlreadyRegistered { + internal static string ExtendedTypeReferenceHandler_NonGenericExecutableNotAllowed { get { - return ResourceManager.GetString("SchemaBuilder_AddRootType_TypeAlreadyRegistered", resourceCulture); + return ResourceManager.GetString("ExtendedTypeReferenceHandler_NonGenericExecutableNotAllowed", resourceCulture); } } - /// - /// Looks up a localized string similar to There is no handler registered that can handle the specified schema binding.. - /// - internal static string SchemaBuilder_Binding_CannotBeHandled { + internal static string BindingCompiler_AddBinding_BindingCannotBeHandled { get { - return ResourceManager.GetString("SchemaBuilder_Binding_CannotBeHandled", resourceCulture); + return ResourceManager.GetString("BindingCompiler_AddBinding_BindingCannotBeHandled", resourceCulture); } } - /// - /// Looks up a localized string similar to The schema binding is not valid.. - /// - internal static string SchemaBuilder_Binding_Invalid { + internal static string Type_SpecifiedByUrl_Description { get { - return ResourceManager.GetString("SchemaBuilder_Binding_Invalid", resourceCulture); + return ResourceManager.GetString("Type_SpecifiedByUrl_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified convention type is not supported.. - /// - internal static string SchemaBuilder_Convention_NotSupported { + internal static string SchemaBuilderExtensions_AddObjectType_TIsSchemaType { get { - return ResourceManager.GetString("SchemaBuilder_Convention_NotSupported", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_AddObjectType_TIsSchemaType", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified interceptor type is not supported.. - /// - internal static string SchemaBuilder_Interceptor_NotSupported { + internal static string SchemaBuilderExtensions_AddUnionType_TIsSchemaType { get { - return ResourceManager.GetString("SchemaBuilder_Interceptor_NotSupported", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_AddUnionType_TIsSchemaType", resourceCulture); } } - /// - /// Looks up a localized string similar to The given schema has to inherit from TypeSystemObjectBase in order to be initializable.. - /// - internal static string SchemaBuilder_ISchemaNotTso { + internal static string SchemaBuilderExtensions_AddEnumType_TIsSchemaType { get { - return ResourceManager.GetString("SchemaBuilder_ISchemaNotTso", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_AddEnumType_TIsSchemaType", resourceCulture); } } - /// - /// Looks up a localized string similar to schemaType must be a schema type.. - /// - internal static string SchemaBuilder_MustBeSchemaType { + internal static string SchemaBuilderExtensions_AddInterfaceType_TIsSchemaType { get { - return ResourceManager.GetString("SchemaBuilder_MustBeSchemaType", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_AddInterfaceType_TIsSchemaType", resourceCulture); } } - /// - /// Looks up a localized string similar to The schema builder was unable to identify the query type of the schema. Either specify which type is the query type or set the schema builder to non-strict validation mode.. - /// - internal static string SchemaBuilder_NoQueryType { + internal static string SchemaBuilderExtensions_AddInputObjectType_TIsSchemaType { get { - return ResourceManager.GetString("SchemaBuilder_NoQueryType", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_AddInputObjectType_TIsSchemaType", resourceCulture); } } - /// - /// Looks up a localized string similar to A root type must be a class.. - /// - internal static string SchemaBuilder_RootType_MustBeClass { + internal static string EventMessageParameterExpressionBuilder_MessageNotFound { get { - return ResourceManager.GetString("SchemaBuilder_RootType_MustBeClass", resourceCulture); + return ResourceManager.GetString("EventMessageParameterExpressionBuilder_MessageNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to A root type must be an object type.. - /// - internal static string SchemaBuilder_RootType_MustBeObjectType { + internal static string DefaultResolverCompilerService_CreateResolver_ArgumentValidationError { get { - return ResourceManager.GetString("SchemaBuilder_RootType_MustBeObjectType", resourceCulture); + return ResourceManager.GetString("DefaultResolverCompilerService_CreateResolver_ArgumentValidationError", resourceCulture); } } - /// - /// Looks up a localized string similar to Non-generic schema types are not allowed.. - /// - internal static string SchemaBuilder_RootType_NonGenericType { + internal static string DefaultResolverCompilerService_CompileSubscribe_OnlyMethodsAllowed { get { - return ResourceManager.GetString("SchemaBuilder_RootType_NonGenericType", resourceCulture); + return ResourceManager.GetString("DefaultResolverCompilerService_CompileSubscribe_OnlyMethodsAllowed", resourceCulture); } } - /// - /// Looks up a localized string similar to The given schema has to inherit from `Schema` in order to be initializable.. - /// - internal static string SchemaBuilder_SchemaTypeInvalid { + internal static string SchemaBuilderExtensions_AddResolverConfig_ContextInvalid { get { - return ResourceManager.GetString("SchemaBuilder_SchemaTypeInvalid", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_AddResolverConfig_ContextInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` is a GraphQL schema type. AddEnumType<T> is a helper method to register a runtime type as GraphQL enum type. Use AddType<T> to register GraphQL schema types.. - /// - internal static string SchemaBuilderExtensions_AddEnumType_TIsSchemaType { + internal static string ExpressionHelper_GetGlobalStateWithDefault_NoDefaults { get { - return ResourceManager.GetString("SchemaBuilderExtensions_AddEnumType_TIsSchemaType", resourceCulture); + return ResourceManager.GetString("ExpressionHelper_GetGlobalStateWithDefault_NoDefaults", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` is a GraphQL schema type. AddInputObjectType<T> is a helper method to register a runtime type as GraphQL input object type. Use AddType<T> to register GraphQL schema types.. - /// - internal static string SchemaBuilderExtensions_AddInputObjectType_TIsSchemaType { + internal static string ExpressionHelper_ResolveScopedContextData_KeyDoesNotExist { get { - return ResourceManager.GetString("SchemaBuilderExtensions_AddInputObjectType_TIsSchemaType", resourceCulture); + return ResourceManager.GetString("ExpressionHelper_ResolveScopedContextData_KeyDoesNotExist", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` is a GraphQL schema type. AddInterfaceType<T> is a helper method to register a runtime type as GraphQL interface type. Use AddType<T> to register GraphQL schema types.. - /// - internal static string SchemaBuilderExtensions_AddInterfaceType_TIsSchemaType { + internal static string ExpressionHelper_GetScopedStateWithDefault_NoDefaultValue { get { - return ResourceManager.GetString("SchemaBuilderExtensions_AddInterfaceType_TIsSchemaType", resourceCulture); + return ResourceManager.GetString("ExpressionHelper_GetScopedStateWithDefault_NoDefaultValue", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` is a GraphQL schema type. AddObjectType<T> is a helper method to register a runtime type as GraphQL object type. Use AddType<T> to register GraphQL schema types.. - /// - internal static string SchemaBuilderExtensions_AddObjectType_TIsSchemaType { + internal static string ClaimsPrincipalParameterExpressionBuilder_NoClaimsFound { get { - return ResourceManager.GetString("SchemaBuilderExtensions_AddObjectType_TIsSchemaType", resourceCulture); + return ResourceManager.GetString("ClaimsPrincipalParameterExpressionBuilder_NoClaimsFound", resourceCulture); } } - /// - /// Looks up a localized string similar to The resolver type needs to be a public non-abstract non-static class.. - /// - internal static string SchemaBuilderExtensions_AddResolver_TypeConditionNotMet { + internal static string DirectiveLocation_VariableDefinition { get { - return ResourceManager.GetString("SchemaBuilderExtensions_AddResolver_TypeConditionNotMet", resourceCulture); + return ResourceManager.GetString("DirectiveLocation_VariableDefinition", resourceCulture); } } - /// - /// Looks up a localized string similar to The schema builder context is invalid.. - /// - internal static string SchemaBuilderExtensions_AddResolverConfig_ContextInvalid { + internal static string SchemaBuilderExtensions_AddResolver_TypeConditionNotMet { get { - return ResourceManager.GetString("SchemaBuilderExtensions_AddResolverConfig_ContextInvalid", resourceCulture); + return ResourceManager.GetString("SchemaBuilderExtensions_AddResolver_TypeConditionNotMet", resourceCulture); } } - /// - /// Looks up a localized string similar to The resolver type needs to be a class or interface. - /// internal static string SchemaBuilderExtensions_AddRootResolver_NeedsToBeClassOrInterface { get { return ResourceManager.GetString("SchemaBuilderExtensions_AddRootResolver_NeedsToBeClassOrInterface", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` is a GraphQL schema type. AddUnionType<T> is a helper method to register a runtime type as GraphQL union type. Use AddType<T> to register GraphQL schema types.. - /// - internal static string SchemaBuilderExtensions_AddUnionType_TIsSchemaType { + internal static string Relay_NodeField_Description { get { - return ResourceManager.GetString("SchemaBuilderExtensions_AddUnionType_TIsSchemaType", resourceCulture); + return ResourceManager.GetString("Relay_NodeField_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to A directive type mustn't be one of the base classes `DirectiveType` or `DirectiveType<T>` but must be a type inheriting from `DirectiveType` or `DirectiveType<T>`.. - /// - internal static string SchemaBuilderExtensions_DirectiveTypeIsBaseType { + internal static string Relay_NodeField_Id_Description { get { - return ResourceManager.GetString("SchemaBuilderExtensions_DirectiveTypeIsBaseType", resourceCulture); + return ResourceManager.GetString("Relay_NodeField_Id_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to A directive type must inherit from `DirectiveType` or `DirectiveType<T>`.. - /// - internal static string SchemaBuilderExtensions_MustBeDirectiveType { + internal static string Relay_NodesField_Description { get { - return ResourceManager.GetString("SchemaBuilderExtensions_MustBeDirectiveType", resourceCulture); + return ResourceManager.GetString("Relay_NodesField_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The schema string cannot be null or empty.. - /// - internal static string SchemaBuilderExtensions_SchemaIsEmpty { + internal static string Relay_NodesField_Ids_Description { get { - return ResourceManager.GetString("SchemaBuilderExtensions_SchemaIsEmpty", resourceCulture); + return ResourceManager.GetString("Relay_NodesField_Ids_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The error message mustn't be null or empty.. - /// - internal static string SchemaErrorBuilder_MessageIsNull { + internal static string ErrorHelper_MiddlewareOrderInvalid { get { - return ResourceManager.GetString("SchemaErrorBuilder_MessageIsNull", resourceCulture); + return ResourceManager.GetString("ErrorHelper_MiddlewareOrderInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to For more details look at the `Errors` property.. - /// - internal static string SchemaException_ErrorSummaryText { + internal static string ErrorHelper_NoSchemaTypesAllowedAsRuntimeType { get { - return ResourceManager.GetString("SchemaException_ErrorSummaryText", resourceCulture); + return ResourceManager.GetString("ErrorHelper_NoSchemaTypesAllowedAsRuntimeType", resourceCulture); } } - /// - /// Looks up a localized string similar to Unexpected schema exception occurred.. - /// - internal static string SchemaException_UnexpectedError { + internal static string FieldInitHelper_CompleteFields_MaxFieldCountToSmall { get { - return ResourceManager.GetString("SchemaException_UnexpectedError", resourceCulture); + return ResourceManager.GetString("FieldInitHelper_CompleteFields_MaxFieldCountToSmall", resourceCulture); } } - /// - /// Looks up a localized string similar to Access the current type schema of this server.. - /// - internal static string SchemaField_Description { + internal static string RegisteredType_Completion_NotYetReady { get { - return ResourceManager.GetString("SchemaField_Description", resourceCulture); + return ResourceManager.GetString("RegisteredType_Completion_NotYetReady", resourceCulture); } } - /// - /// Looks up a localized string similar to Unknown operation type.. - /// - internal static string SchemaSyntaxVisitor_UnknownOperationType { + internal static string EdgeType_IsInstanceOfType_NonObject { get { - return ResourceManager.GetString("SchemaSyntaxVisitor_UnknownOperationType", resourceCulture); + return ResourceManager.GetString("EdgeType_IsInstanceOfType_NonObject", resourceCulture); } } - /// - /// Looks up a localized string similar to The schema types definition is in an invalid state.. - /// - internal static string SchemaTypes_DefinitionInvalid { + internal static string EdgeType_Description { get { - return ResourceManager.GetString("SchemaTypes_DefinitionInvalid", resourceCulture); + return ResourceManager.GetString("EdgeType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` does not exist or is not of the specified kind `{1}`.. - /// - internal static string SchemaTypes_GetType_DoesNotExist { + internal static string EdgeType_Cursor_Description { get { - return ResourceManager.GetString("SchemaTypes_GetType_DoesNotExist", resourceCulture); + return ResourceManager.GetString("EdgeType_Cursor_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The middleware order is invalid since the service scope is missing.. - /// - internal static string ServiceHelper_UseResolverServiceInternal_Order { + internal static string EdgeType_Node_Description { get { - return ResourceManager.GetString("ServiceHelper_UseResolverServiceInternal_Order", resourceCulture); + return ResourceManager.GetString("EdgeType_Node_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The `Short` scalar type represents non-fractional signed whole 16-bit numeric values. Short can represent values between -(2^15) and 2^15 - 1.. - /// - internal static string ShortType_Description { + internal static string ConnectionType_Description { get { - return ResourceManager.GetString("ShortType_Description", resourceCulture); + return ResourceManager.GetString("ConnectionType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Skipped when true.. - /// - internal static string SkipDirectiveType_IfDescription { + internal static string ConnectionType_PageInfo_Description { get { - return ResourceManager.GetString("SkipDirectiveType_IfDescription", resourceCulture); + return ResourceManager.GetString("ConnectionType_PageInfo_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Directs the executor to skip this field or fragment when the `if` argument is true.. - /// - internal static string SkipDirectiveType_TypeDescription { + internal static string ConnectionType_Edges_Description { get { - return ResourceManager.GetString("SkipDirectiveType_TypeDescription", resourceCulture); + return ResourceManager.GetString("ConnectionType_Edges_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The `@specifiedBy` directive is used within the type system definition language to provide a URL for specifying the behavior of custom scalar definitions.. - /// - internal static string SpecifiedByDirectiveType_TypeDescription { + internal static string ConnectionType_TotalCount_Description { get { - return ResourceManager.GetString("SpecifiedByDirectiveType_TypeDescription", resourceCulture); + return ResourceManager.GetString("ConnectionType_TotalCount_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The specifiedBy URL points to a human-readable specification. This field will only read a result for scalar types.. - /// - internal static string SpecifiedByDirectiveType_UrlDescription { + internal static string CollectionSegmentType_PageInfo_Description { get { - return ResourceManager.GetString("SpecifiedByDirectiveType_UrlDescription", resourceCulture); + return ResourceManager.GetString("CollectionSegmentType_PageInfo_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`.. - /// - internal static string StreamDirectiveType_Description { + internal static string CollectionSegmentType_Description { get { - return ResourceManager.GetString("StreamDirectiveType_Description", resourceCulture); + return ResourceManager.GetString("CollectionSegmentType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Streamed when true.. - /// - internal static string StreamDirectiveType_If_Description { + internal static string CollectionSegmentType_Items_Description { get { - return ResourceManager.GetString("StreamDirectiveType_If_Description", resourceCulture); + return ResourceManager.GetString("CollectionSegmentType_Items_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to The initial elements that shall be send down to the consumer.. - /// - internal static string StreamDirectiveType_InitialCount_Description { + internal static string ConnectionType_Nodes_Description { get { - return ResourceManager.GetString("StreamDirectiveType_InitialCount_Description", resourceCulture); + return ResourceManager.GetString("ConnectionType_Nodes_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to.. - /// - internal static string StreamDirectiveType_Label_Description { + internal static string ServiceHelper_UseResolverServiceInternal_Order { get { - return ResourceManager.GetString("StreamDirectiveType_Label_Description", resourceCulture); + return ResourceManager.GetString("ServiceHelper_UseResolverServiceInternal_Order", resourceCulture); } } - /// - /// Looks up a localized string similar to The `{0}` cannot be null or empty.. - /// - internal static string String_Argument_NullOrEmpty { + internal static string DefaultNamingConventions_FormatFieldName_EmptyOrNull { get { - return ResourceManager.GetString("String_Argument_NullOrEmpty", resourceCulture); + return ResourceManager.GetString("DefaultNamingConventions_FormatFieldName_EmptyOrNull", resourceCulture); } } - /// - /// Looks up a localized string similar to The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.. - /// - internal static string StringType_Description { + internal static string OneOfDirectiveType_Description { get { - return ResourceManager.GetString("StringType_Description", resourceCulture); + return ResourceManager.GetString("OneOfDirectiveType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Tag is not supported on the specified descriptor.. - /// - internal static string TagDirective_Descriptor_NotSupported { + internal static string ThrowHelper_OneOfNoFieldSet { get { - return ResourceManager.GetString("TagDirective_Descriptor_NotSupported", resourceCulture); + return ResourceManager.GetString("ThrowHelper_OneOfNoFieldSet", resourceCulture); } } - /// - /// Looks up a localized string similar to The tag name must follow the GraphQL type name rules.. - /// - internal static string TagDirective_Name_NotValid { + internal static string ThrowHelper_OneOfMoreThanOneFieldSet { get { - return ResourceManager.GetString("TagDirective_Name_NotValid", resourceCulture); + return ResourceManager.GetString("ThrowHelper_OneOfMoreThanOneFieldSet", resourceCulture); } } - /// - /// Looks up a localized string similar to Convention of type {0} in scope {1} could not be created. - /// - internal static string ThrowHelper_Convention_ConventionCouldNotBeCreated { + internal static string ThrowHelper_OneOfFieldIsNull { get { - return ResourceManager.GetString("ThrowHelper_Convention_ConventionCouldNotBeCreated", resourceCulture); + return ResourceManager.GetString("ThrowHelper_OneOfFieldIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to There are two conventions registered for {0} in scope {1}. Only one convention is allowed. Use convention extensions if additional configuration is needed. Colliding conventions are {2} and {3}. - /// - internal static string ThrowHelper_Convention_TwoConventionsRegisteredForScope { + internal static string ReflectionUtils_ExtractMethod_MethodExpected { get { - return ResourceManager.GetString("ThrowHelper_Convention_TwoConventionsRegisteredForScope", resourceCulture); + return ResourceManager.GetString("ReflectionUtils_ExtractMethod_MethodExpected", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to create a convention instance from {0}.. - /// - internal static string ThrowHelper_Convention_UnableToCreateConvention { + internal static string ResolverContextExtensions_ScopedContextData_KeyNotFound { get { - return ResourceManager.GetString("ThrowHelper_Convention_UnableToCreateConvention", resourceCulture); + return ResourceManager.GetString("ResolverContextExtensions_ScopedContextData_KeyNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to The provided type {0} is not a dataloader. - /// - internal static string ThrowHelper_DataLoader_InvalidType { + internal static string ResolverContextExtensions_LocalContextData_KeyNotFound { get { - return ResourceManager.GetString("ThrowHelper_DataLoader_InvalidType", resourceCulture); + return ResourceManager.GetString("ResolverContextExtensions_LocalContextData_KeyNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to The event message is of the type `{0}` and cannot be casted to `{1}.`. - /// - internal static string ThrowHelper_EventMessage_InvalidCast { + internal static string ResolverContextExtensions_ContextData_KeyNotFound { get { - return ResourceManager.GetString("ThrowHelper_EventMessage_InvalidCast", resourceCulture); + return ResourceManager.GetString("ResolverContextExtensions_ContextData_KeyNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to There is no event message on the context.. - /// - internal static string ThrowHelper_EventMessage_NotFound { + internal static string SchemaTypes_GetType_DoesNotExist { get { - return ResourceManager.GetString("ThrowHelper_EventMessage_NotFound", resourceCulture); + return ResourceManager.GetString("SchemaTypes_GetType_DoesNotExist", resourceCulture); } } - /// - /// Looks up a localized string similar to The field is already sealed and cannot be mutated.. - /// - internal static string ThrowHelper_FieldBase_Sealed { + internal static string SchemaTypes_DefinitionInvalid { get { - return ResourceManager.GetString("ThrowHelper_FieldBase_Sealed", resourceCulture); + return ResourceManager.GetString("SchemaTypes_DefinitionInvalid", resourceCulture); } } - /// - /// Looks up a localized string similar to The shape of the enum {0} is not known. - /// - internal static string ThrowHelper_Flags_Enum_Shape_Unknown { + internal static string InputObjectTypeDescriptor_OnlyProperties { get { - return ResourceManager.GetString("ThrowHelper_Flags_Enum_Shape_Unknown", resourceCulture); + return ResourceManager.GetString("InputObjectTypeDescriptor_OnlyProperties", resourceCulture); } } - /// - /// Looks up a localized string similar to One of the values of {0} does not have a valid name: {1}. - /// - internal static string ThrowHelper_Flags_IllegalFlagEnumName { + internal static string InterfaceTypeDescriptor_MustBePropertyOrMethod { get { - return ResourceManager.GetString("ThrowHelper_Flags_IllegalFlagEnumName", resourceCulture); + return ResourceManager.GetString("InterfaceTypeDescriptor_MustBePropertyOrMethod", resourceCulture); } } - /// - /// Looks up a localized string similar to Flags need to have at least one selection. Type: {0}. - /// - internal static string ThrowHelper_Flags_Parser_NoSelection { + internal static string ThrowHelper_FieldBase_Sealed { get { - return ResourceManager.GetString("ThrowHelper_Flags_Parser_NoSelection", resourceCulture); + return ResourceManager.GetString("ThrowHelper_FieldBase_Sealed", resourceCulture); } } - /// - /// Looks up a localized string similar to The value {0} is not known for type {1}. - /// - internal static string ThrowHelper_Flags_Parser_UnknownSelection { + internal static string TypeInitializer_CannotFindType { get { - return ResourceManager.GetString("ThrowHelper_Flags_Parser_UnknownSelection", resourceCulture); + return ResourceManager.GetString("TypeInitializer_CannotFindType", resourceCulture); } } - /// - /// Looks up a localized string similar to The type `{0}` does mot expect `{1}`.. - /// - internal static string ThrowHelper_FormatResultLeaf_InvalidSyntaxKind { + internal static string ThrowHelper_RelayIdFieldHelpers_NoFieldType { get { - return ResourceManager.GetString("ThrowHelper_FormatResultLeaf_InvalidSyntaxKind", resourceCulture); + return ResourceManager.GetString("ThrowHelper_RelayIdFieldHelpers_NoFieldType", resourceCulture); } } - /// - /// Looks up a localized string similar to The list result value of {0} must implement IList but is of the type {1}.. - /// - internal static string ThrowHelper_FormatResultList_InvalidObjectKind { + internal static string ThrowHelper_NodeResolver_ObjNoDefinition { get { - return ResourceManager.GetString("ThrowHelper_FormatResultList_InvalidObjectKind", resourceCulture); + return ResourceManager.GetString("ThrowHelper_NodeResolver_ObjNoDefinition", resourceCulture); } } - /// - /// Looks up a localized string similar to The input object `{1}` must to be of type `{2}` or serialized as `IReadOnlyDictionary<string. object?>` but not as `{0}`.. - /// - internal static string ThrowHelper_FormatResultObject_InvalidObjectKind { + internal static string ThrowHelper_NodeResolver_ArgumentTypeMissing { get { - return ResourceManager.GetString("ThrowHelper_FormatResultObject_InvalidObjectKind", resourceCulture); + return ResourceManager.GetString("ThrowHelper_NodeResolver_ArgumentTypeMissing", resourceCulture); } } - /// - /// Looks up a localized string similar to The list runtime value of {0} must implement IEnumerable or IList but is of the type {1}.. - /// - internal static string ThrowHelper_FormatValueList_InvalidObjectKind { + internal static string ThrowHelper_Schema_GetMember_TypeNotFound { get { - return ResourceManager.GetString("ThrowHelper_FormatValueList_InvalidObjectKind", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_TypeNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` is expected to be an input type.. - /// - internal static string ThrowHelper_InputTypeExpected_Message { + internal static string ThrowHelper_Schema_GetMember_FieldNotFound { get { - return ResourceManager.GetString("ThrowHelper_InputTypeExpected_Message", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_FieldNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to The fields `{0}` do not exist on the type `{1}`.. - /// - internal static string ThrowHelper_InvalidInputFieldNames { + internal static string ThrowHelper_Schema_GetMember_FieldArgNotFound { get { - return ResourceManager.GetString("ThrowHelper_InvalidInputFieldNames", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_FieldArgNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to The field `{0}` does not exist on the type `{1}`.. - /// - internal static string ThrowHelper_InvalidInputFieldNames_Single { + internal static string ThrowHelper_Schema_GetMember_InvalidCoordinate { get { - return ResourceManager.GetString("ThrowHelper_InvalidInputFieldNames_Single", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_InvalidCoordinate", resourceCulture); } } - /// - /// Looks up a localized string similar to The {0}-directive is missing the if-argument.. - /// - internal static string ThrowHelper_MissingDirectiveIfArgument { + internal static string ThrowHelper_Schema_GetMember_InputFieldNotFound { get { - return ResourceManager.GetString("ThrowHelper_MissingDirectiveIfArgument", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_InputFieldNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to Mutation conventions infer the error name from the mutation. In this case the error union was inferred from the mutation `{0}` as `{1}`, but the type initialization encountered another object with the name `{1}`. Either rename the error object or specify a naming exception for this particular mutation. You can do that by using the `UseMutationConventionAttribute` for instance.. - /// - internal static string ThrowHelper_MutationDuplicateErrorName { + internal static string ThrowHelper_Schema_GetMember_EnumValueNotFound { get { - return ResourceManager.GetString("ThrowHelper_MutationDuplicateErrorName", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_EnumValueNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified id field `{0}` does not exist on `{1}`.. - /// - internal static string ThrowHelper_NodeAttribute_IdFieldNotFound { + internal static string ThrowHelper_Schema_GetMember_DirectiveNotFound { get { - return ResourceManager.GetString("ThrowHelper_NodeAttribute_IdFieldNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_DirectiveNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to A field argument at this initialization state is guaranteed to have an argument type, but we found none.. - /// - internal static string ThrowHelper_NodeResolver_ArgumentTypeMissing { + internal static string ThrowHelper_Schema_GetMember_DirectiveArgumentNotFound { get { - return ResourceManager.GetString("ThrowHelper_NodeResolver_ArgumentTypeMissing", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Schema_GetMember_DirectiveArgumentNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to An object type at this point is guaranteed to have a type definition, but we found none.. - /// - internal static string ThrowHelper_NodeResolver_ObjNoDefinition { + internal static string ThrowHelper_FormatResultLeaf_InvalidSyntaxKind { get { - return ResourceManager.GetString("ThrowHelper_NodeResolver_ObjNoDefinition", resourceCulture); + return ResourceManager.GetString("ThrowHelper_FormatResultLeaf_InvalidSyntaxKind", resourceCulture); } } - /// - /// Looks up a localized string similar to Cannot accept null for non-nullable input.. - /// - internal static string ThrowHelper_NonNullInputViolation { + internal static string ThrowHelper_FormatResultList_InvalidObjectKind { get { - return ResourceManager.GetString("ThrowHelper_NonNullInputViolation", resourceCulture); + return ResourceManager.GetString("ThrowHelper_FormatResultList_InvalidObjectKind", resourceCulture); } } - /// - /// Looks up a localized string similar to `null` was set to the field `{0}`of the Oneof Input Object `{1}`. Oneof Input Objects are a special variant of Input Objects where the type system asserts that exactly one of the fields must be set and non-null.. - /// - internal static string ThrowHelper_OneOfFieldIsNull { + internal static string ThrowHelper_FormatResultObject_InvalidObjectKind { get { - return ResourceManager.GetString("ThrowHelper_OneOfFieldIsNull", resourceCulture); + return ResourceManager.GetString("ThrowHelper_FormatResultObject_InvalidObjectKind", resourceCulture); } } - /// - /// Looks up a localized string similar to More than one field of the Oneof Input Object `{0}` is set. Oneof Input Objects are a special variant of Input Objects where the type system asserts that exactly one of the fields must be set and non-null.. - /// - internal static string ThrowHelper_OneOfMoreThanOneFieldSet { + internal static string ThrowHelper_FormatValueList_InvalidObjectKind { get { - return ResourceManager.GetString("ThrowHelper_OneOfMoreThanOneFieldSet", resourceCulture); + return ResourceManager.GetString("ThrowHelper_FormatValueList_InvalidObjectKind", resourceCulture); } } - /// - /// Looks up a localized string similar to The Oneof Input Objects `{0}` require that exactly one field must be supplied and that field must not be `null`. Oneof Input Objects are a special variant of Input Objects where the type system asserts that exactly one of the fields must be set and non-null.. - /// - internal static string ThrowHelper_OneOfNoFieldSet { + internal static string ThrowHelper_ParseList_InvalidObjectKind { get { - return ResourceManager.GetString("ThrowHelper_OneOfNoFieldSet", resourceCulture); + return ResourceManager.GetString("ThrowHelper_ParseList_InvalidObjectKind", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type `{0}` is expected to be an output type.. - /// - internal static string ThrowHelper_OutputTypeExpected_Message { + internal static string ThrowHelper_ParseNestedList_InvalidSyntaxKind { get { - return ResourceManager.GetString("ThrowHelper_OutputTypeExpected_Message", resourceCulture); + return ResourceManager.GetString("ThrowHelper_ParseNestedList_InvalidSyntaxKind", resourceCulture); } } - /// - /// Looks up a localized string similar to The input object `{1}` must to be serialized as `{2}` or as `IReadOnlyDictionary<string. object?>` but not as `{0}`.. - /// internal static string ThrowHelper_ParseInputObject_InvalidObjectKind { get { return ResourceManager.GetString("ThrowHelper_ParseInputObject_InvalidObjectKind", resourceCulture); } } - /// - /// Looks up a localized string similar to The syntax node `{0}` is incompatible with the type `{1}`.. - /// internal static string ThrowHelper_ParseInputObject_InvalidSyntaxKind { get { return ResourceManager.GetString("ThrowHelper_ParseInputObject_InvalidSyntaxKind", resourceCulture); } } - /// - /// Looks up a localized string similar to The list `{1}` must to be serialized as `{2}` or as `IList` but not as `{0}`.. - /// - internal static string ThrowHelper_ParseList_InvalidObjectKind { - get { - return ResourceManager.GetString("ThrowHelper_ParseList_InvalidObjectKind", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The item syntax node for a nested list must be `ListValue` but the parser found `{0}`.. - /// - internal static string ThrowHelper_ParseNestedList_InvalidSyntaxKind { + internal static string ThrowHelper_NonNullInputViolation { get { - return ResourceManager.GetString("ThrowHelper_ParseNestedList_InvalidSyntaxKind", resourceCulture); + return ResourceManager.GetString("ThrowHelper_NonNullInputViolation", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to resolve type from field `{0}`.. - /// - internal static string ThrowHelper_RelayIdFieldHelpers_NoFieldType { + internal static string ThrowHelper_InvalidInputFieldNames { get { - return ResourceManager.GetString("ThrowHelper_RelayIdFieldHelpers_NoFieldType", resourceCulture); + return ResourceManager.GetString("ThrowHelper_InvalidInputFieldNames", resourceCulture); } } - /// - /// Looks up a localized string similar to The required input field `{0}` is missing.. - /// internal static string ThrowHelper_RequiredInputFieldIsMissing { get { return ResourceManager.GetString("ThrowHelper_RequiredInputFieldIsMissing", resourceCulture); } } - /// - /// Looks up a localized string similar to Argument `{0}` was not found on directive `@{1}`.. - /// - internal static string ThrowHelper_Schema_GetMember_DirectiveArgumentNotFound { + internal static string ThrowHelper_DataLoader_InvalidType { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_DirectiveArgumentNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_DataLoader_InvalidType", resourceCulture); } } - /// - /// Looks up a localized string similar to Directive `@{0}` not found.. - /// - internal static string ThrowHelper_Schema_GetMember_DirectiveNotFound { + internal static string ThrowHelper_Convention_ConventionCouldNotBeCreated { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_DirectiveNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Convention_ConventionCouldNotBeCreated", resourceCulture); } } - /// - /// Looks up a localized string similar to Enum value `{0}` was not found on type `{1}`.. - /// - internal static string ThrowHelper_Schema_GetMember_EnumValueNotFound { + internal static string ThrowHelper_Convention_TwoConventionsRegisteredForScope { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_EnumValueNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Convention_TwoConventionsRegisteredForScope", resourceCulture); } } - /// - /// Looks up a localized string similar to Argument `{0}` was not found on field `{1}.{2}`.. - /// - internal static string ThrowHelper_Schema_GetMember_FieldArgNotFound { + internal static string ThrowHelper_NodeAttribute_IdFieldNotFound { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_FieldArgNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_NodeAttribute_IdFieldNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to Field `{0}` was not found on type `{1}`.. - /// - internal static string ThrowHelper_Schema_GetMember_FieldNotFound { + internal static string ThrowHelper_TypeCompletionContext_UnableToResolveType { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_FieldNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_TypeCompletionContext_UnableToResolveType", resourceCulture); } } - /// - /// Looks up a localized string similar to Input field `{0}` was not found on type `{1}`.. - /// - internal static string ThrowHelper_Schema_GetMember_InputFieldNotFound { + internal static string ThrowHelper_TypeRegistrar_CreateInstanceFailed { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_InputFieldNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_TypeRegistrar_CreateInstanceFailed", resourceCulture); } } - /// - /// Looks up a localized string similar to The coordinate `{0}` is invalid for the type `{1}`.. - /// - internal static string ThrowHelper_Schema_GetMember_InvalidCoordinate { + internal static string ThrowHelper_Convention_UnableToCreateConvention { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_InvalidCoordinate", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Convention_UnableToCreateConvention", resourceCulture); } } - /// - /// Looks up a localized string similar to A type with the name `{0}` was not found.. - /// - internal static string ThrowHelper_Schema_GetMember_TypeNotFound { + internal static string ThrowHelper_SubscribeAttribute_SubscribeResolverNotFound { get { - return ResourceManager.GetString("ThrowHelper_Schema_GetMember_TypeNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_SubscribeAttribute_SubscribeResolverNotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to You need to specify the message type on {0}.{1}. (SubscribeAttribute). - /// - internal static string ThrowHelper_SubscribeAttribute_MessageTypeUnspecified { + internal static string ThrowHelper_SubscribeAttribute_TopicTypeUnspecified { get { - return ResourceManager.GetString("ThrowHelper_SubscribeAttribute_MessageTypeUnspecified", resourceCulture); + return ResourceManager.GetString("ThrowHelper_SubscribeAttribute_TopicTypeUnspecified", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to find the subscribe resolver `{2}` defined on {0}.{1}. The subscribe resolver bust be a method that is public, non-static and on the same type as the resolver. (SubscribeAttribute). - /// - internal static string ThrowHelper_SubscribeAttribute_SubscribeResolverNotFound { + internal static string ThrowHelper_SubscribeAttribute_MessageTypeUnspecified { get { - return ResourceManager.GetString("ThrowHelper_SubscribeAttribute_SubscribeResolverNotFound", resourceCulture); + return ResourceManager.GetString("ThrowHelper_SubscribeAttribute_MessageTypeUnspecified", resourceCulture); } } - /// - /// Looks up a localized string similar to You need to specify the topic type on {0}.{1}. (SubscribeAttribute). - /// - internal static string ThrowHelper_SubscribeAttribute_TopicTypeUnspecified { + internal static string ThrowHelper_EventMessage_NotFound { get { - return ResourceManager.GetString("ThrowHelper_SubscribeAttribute_TopicTypeUnspecified", resourceCulture); + return ResourceManager.GetString("ThrowHelper_EventMessage_NotFound", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to resolve type reference `{0}`.. - /// - internal static string ThrowHelper_TypeCompletionContext_UnableToResolveType { + internal static string ThrowHelper_EventMessage_InvalidCast { get { - return ResourceManager.GetString("ThrowHelper_TypeCompletionContext_UnableToResolveType", resourceCulture); + return ResourceManager.GetString("ThrowHelper_EventMessage_InvalidCast", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to create instance of type `{0}`.. - /// - internal static string ThrowHelper_TypeRegistrar_CreateInstanceFailed { + internal static string ErrorHelper_NeedsOneAtLeastField { get { - return ResourceManager.GetString("ThrowHelper_TypeRegistrar_CreateInstanceFailed", resourceCulture); + return ResourceManager.GetString("ErrorHelper_NeedsOneAtLeastField", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to infer the element type from the current resolver. This often happens if the resolver is not an iterable type like IEnumerable, IQueryable, IList etc. Ensure that you either explicitly specify the element type or that the return type of your resolver is an iterable type.. - /// - internal static string ThrowHelper_UsePagingAttribute_NodeTypeUnknown { + internal static string ErrorHelper_TwoUnderscoresNotAllowedField { get { - return ResourceManager.GetString("ThrowHelper_UsePagingAttribute_NodeTypeUnknown", resourceCulture); + return ResourceManager.GetString("ErrorHelper_TwoUnderscoresNotAllowedField", resourceCulture); } } - /// - /// Looks up a localized string similar to The `TimeSpan` scalar represents an ISO-8601 compliant duration type.. - /// - internal static string TimeSpanType_Description { + internal static string ErrorHelper_TwoUnderscoresNotAllowedOnArgument { get { - return ResourceManager.GetString("TimeSpanType_Description", resourceCulture); + return ResourceManager.GetString("ErrorHelper_TwoUnderscoresNotAllowedOnArgument", resourceCulture); } } - /// - /// Looks up a localized string similar to The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. - /// - ///Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other [rest of string was truncated]";. - /// - internal static string Type_Description { + internal static string ErrorHelper_TwoUnderscoresNotAllowedOnDirectiveName { get { - return ResourceManager.GetString("Type_Description", resourceCulture); + return ResourceManager.GetString("ErrorHelper_TwoUnderscoresNotAllowedOnDirectiveName", resourceCulture); } } - /// - /// Looks up a localized string similar to `specifiedByURL` may return a String (in the form of a URL) for custom scalars, otherwise it will return `null`.. - /// - internal static string Type_SpecifiedByUrl_Description { + internal static string ErrorHelper_NotTransitivelyImplemented { get { - return ResourceManager.GetString("Type_SpecifiedByUrl_Description", resourceCulture); + return ResourceManager.GetString("ErrorHelper_NotTransitivelyImplemented", resourceCulture); } } - /// - /// Looks up a localized string similar to The configuration delegate mustn't be null.. - /// - internal static string TypeConfiguration_ConfigureIsNull { + internal static string ErrorHelper_InvalidFieldType { get { - return ResourceManager.GetString("TypeConfiguration_ConfigureIsNull", resourceCulture); + return ResourceManager.GetString("ErrorHelper_InvalidFieldType", resourceCulture); } } - /// - /// Looks up a localized string similar to Definition mustn't be null.. - /// - internal static string TypeConfiguration_DefinitionIsNull { + internal static string ErrorHelper_FieldNotImplemented { get { - return ResourceManager.GetString("TypeConfiguration_DefinitionIsNull", resourceCulture); + return ResourceManager.GetString("ErrorHelper_FieldNotImplemented", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to convert type from `{0}` to `{1}`. - /// - internal static string TypeConversion_ConvertNotSupported { + internal static string ErrorHelper_InvalidArgumentType { get { - return ResourceManager.GetString("TypeConversion_ConvertNotSupported", resourceCulture); + return ResourceManager.GetString("ErrorHelper_InvalidArgumentType", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type is not a schema type.. - /// - internal static string TypeDependency_MustBeSchemaType { + internal static string ErrorHelper_AdditionalArgumentNotNullable { get { - return ResourceManager.GetString("TypeDependency_MustBeSchemaType", resourceCulture); + return ResourceManager.GetString("ErrorHelper_AdditionalArgumentNotNullable", resourceCulture); } } - /// - /// Looks up a localized string similar to TypeReference kind not supported.. - /// - internal static string TypeDiscoveryInfo_TypeRefKindNotSupported { + internal static string ErrorHelper_ArgumentNotImplemented { get { - return ResourceManager.GetString("TypeDiscoveryInfo_TypeRefKindNotSupported", resourceCulture); + return ResourceManager.GetString("ErrorHelper_ArgumentNotImplemented", resourceCulture); } } - /// - /// Looks up a localized string similar to The type structure is invalid.. - /// - internal static string TypeExtensions_InvalidStructure { + internal static string ErrorHelper_OneofInputObjectMustHaveNullableFieldsWithoutDefaults { get { - return ResourceManager.GetString("TypeExtensions_InvalidStructure", resourceCulture); + return ResourceManager.GetString("ErrorHelper_OneofInputObjectMustHaveNullableFieldsWithoutDefaults", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type kind is not supported.. - /// - internal static string TypeExtensions_KindIsNotSupported { + internal static string ErrorHelper_InputObjectMustNotHaveRecursiveNonNullableReferencesToSelf { get { - return ResourceManager.GetString("TypeExtensions_KindIsNotSupported", resourceCulture); + return ResourceManager.GetString("ErrorHelper_InputObjectMustNotHaveRecursiveNonNullableReferencesToSelf", resourceCulture); } } - /// - /// Looks up a localized string similar to The specified type is not a valid list type.. - /// - internal static string TypeExtensions_NoListType { + internal static string ErrorHelper_RequiredArgumentCannotBeDeprecated { get { - return ResourceManager.GetString("TypeExtensions_NoListType", resourceCulture); + return ResourceManager.GetString("ErrorHelper_RequiredArgumentCannotBeDeprecated", resourceCulture); } } - /// - /// Looks up a localized string similar to The given type is not a {0}.. - /// - internal static string TypeExtensions_TypeIsNotOfT { + internal static string ErrorHelper_RequiredFieldCannotBeDeprecated { get { - return ResourceManager.GetString("TypeExtensions_TypeIsNotOfT", resourceCulture); + return ResourceManager.GetString("ErrorHelper_RequiredFieldCannotBeDeprecated", resourceCulture); } } - /// - /// Looks up a localized string similar to Request the type information of a single type.. - /// - internal static string TypeField_Description { + internal static string ErrorHelper_InterfaceHasNoImplementation { get { - return ResourceManager.GetString("TypeField_Description", resourceCulture); + return ResourceManager.GetString("ErrorHelper_InterfaceHasNoImplementation", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to find type(s) {0}. - /// - internal static string TypeInitializer_CannotFindType { + internal static string ErrorHelper_CompleteInterfacesHelper_UnableToResolveInterface { get { - return ResourceManager.GetString("TypeInitializer_CannotFindType", resourceCulture); + return ResourceManager.GetString("ErrorHelper_CompleteInterfacesHelper_UnableToResolveInterface", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to resolve dependencies {1} for type `{0}`.. - /// - internal static string TypeInitializer_CannotResolveDependency { + internal static string ErrorHelper_DirectiveCollection_ArgumentDoesNotExist { get { - return ResourceManager.GetString("TypeInitializer_CannotResolveDependency", resourceCulture); + return ResourceManager.GetString("ErrorHelper_DirectiveCollection_ArgumentDoesNotExist", resourceCulture); } } - /// - /// Looks up a localized string similar to The name `{0}` was already registered by another type.. - /// - internal static string TypeInitializer_CompleteName_Duplicate { + internal static string ErrorHelper_DirectiveCollection_ArgumentNonNullViolation { get { - return ResourceManager.GetString("TypeInitializer_CompleteName_Duplicate", resourceCulture); + return ResourceManager.GetString("ErrorHelper_DirectiveCollection_ArgumentNonNullViolation", resourceCulture); } } - /// - /// Looks up a localized string similar to The kind of the extension does not match the kind of the type `{0}`.. - /// - internal static string TypeInitializer_Merge_KindDoesNotMatch { + internal static string ErrorHelper_ObjectType_UnableToInferOrResolveType { get { - return ResourceManager.GetString("TypeInitializer_Merge_KindDoesNotMatch", resourceCulture); + return ResourceManager.GetString("ErrorHelper_ObjectType_UnableToInferOrResolveType", resourceCulture); } } - /// - /// Looks up a localized string similar to An enum describing what kind of type a given `__Type` is.. - /// - internal static string TypeKind_Description { + internal static string ErrorHelper_Relay_NoNodeResolver { get { - return ResourceManager.GetString("TypeKind_Description", resourceCulture); + return ResourceManager.GetString("ErrorHelper_Relay_NoNodeResolver", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is an enum. `enumValues` is a valid field.. - /// - internal static string TypeKind_Enum { + internal static string ErrorHelper_NodeResolver_MustHaveExactlyOneIdArg { get { - return ResourceManager.GetString("TypeKind_Enum", resourceCulture); + return ResourceManager.GetString("ErrorHelper_NodeResolver_MustHaveExactlyOneIdArg", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is an input object. `inputFields` is a valid field.. - /// - internal static string TypeKind_InputObject { + internal static string ErrorHelper_NodeResolver_MustReturnObject { get { - return ResourceManager.GetString("TypeKind_InputObject", resourceCulture); + return ResourceManager.GetString("ErrorHelper_NodeResolver_MustReturnObject", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.. - /// - internal static string TypeKind_Interface { + internal static string ErrorHelper_NodeResolver_NodeTypeHasNoId { get { - return ResourceManager.GetString("TypeKind_Interface", resourceCulture); + return ResourceManager.GetString("ErrorHelper_NodeResolver_NodeTypeHasNoId", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is a list. `ofType` is a valid field.. - /// - internal static string TypeKind_List { + internal static string ThrowHelper_InvalidInputFieldNames_Single { get { - return ResourceManager.GetString("TypeKind_List", resourceCulture); + return ResourceManager.GetString("ThrowHelper_InvalidInputFieldNames_Single", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is a non-null. `ofType` is a valid field.. - /// - internal static string TypeKind_NonNull { + internal static string ThrowHelper_MutationDuplicateErrorName { get { - return ResourceManager.GetString("TypeKind_NonNull", resourceCulture); + return ResourceManager.GetString("ThrowHelper_MutationDuplicateErrorName", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is an object. `fields` and `interfaces` are valid fields.. - /// - internal static string TypeKind_Object { + internal static string ErrorHelper_NodeResolverMissing { get { - return ResourceManager.GetString("TypeKind_Object", resourceCulture); + return ResourceManager.GetString("ErrorHelper_NodeResolverMissing", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is a scalar.. - /// - internal static string TypeKind_Scalar { + internal static string ThrowHelper_Flags_Enum_Shape_Unknown { get { - return ResourceManager.GetString("TypeKind_Scalar", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Flags_Enum_Shape_Unknown", resourceCulture); } } - /// - /// Looks up a localized string similar to Indicates this type is a union. `possibleTypes` is a valid field.. - /// - internal static string TypeKind_Union { + internal static string ThrowHelper_Flags_Parser_NoSelection { get { - return ResourceManager.GetString("TypeKind_Union", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Flags_Parser_NoSelection", resourceCulture); } } - /// - /// Looks up a localized string similar to The name of the current Object type at runtime.. - /// - internal static string TypeNameField_Description { + internal static string ThrowHelper_Flags_Parser_UnknownSelection { get { - return ResourceManager.GetString("TypeNameField_Description", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Flags_Parser_UnknownSelection", resourceCulture); } } - /// - /// Looks up a localized string similar to Invalid type structure.. - /// - internal static string TypeNameHelper_InvalidTypeStructure { + internal static string ThrowHelper_Flags_IllegalFlagEnumName { get { - return ResourceManager.GetString("TypeNameHelper_InvalidTypeStructure", resourceCulture); + return ResourceManager.GetString("ThrowHelper_Flags_IllegalFlagEnumName", resourceCulture); } } - /// - /// Looks up a localized string similar to Only type system objects are allowed as dependency.. - /// - internal static string TypeNameHelper_OnlyTypeSystemObjectsAreAllowed { + internal static string Directive_GetArgumentValue_UnknownArgument { get { - return ResourceManager.GetString("TypeNameHelper_OnlyTypeSystemObjectsAreAllowed", resourceCulture); + return ResourceManager.GetString("Directive_GetArgumentValue_UnknownArgument", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to infer or resolve a schema type from the type reference `{0}`.. - /// - internal static string TypeRegistrar_TypesInconsistent { + internal static string ErrorHelper_DirectiveCollection_ArgumentValueTypeIsWrong { get { - return ResourceManager.GetString("TypeRegistrar_TypesInconsistent", resourceCulture); + return ResourceManager.GetString("ErrorHelper_DirectiveCollection_ArgumentValueTypeIsWrong", resourceCulture); } } - /// - /// Looks up a localized string similar to The typeName mustn't be null or empty.. - /// - internal static string TypeResourceHelper_TypeNameEmptyOrNull { + internal static string TypeDiscoveryInfo_TypeRefKindNotSupported { get { - return ResourceManager.GetString("TypeResourceHelper_TypeNameEmptyOrNull", resourceCulture); + return ResourceManager.GetString("TypeDiscoveryInfo_TypeRefKindNotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to The description becomes immutable once it was assigned.. - /// - internal static string TypeSystemObject_DescriptionImmutable { + internal static string ErrorHelper_FetchedToManyNodesAtOnce { get { - return ResourceManager.GetString("TypeSystemObject_DescriptionImmutable", resourceCulture); + return ResourceManager.GetString("ErrorHelper_FetchedToManyNodesAtOnce", resourceCulture); } } - /// - /// Looks up a localized string similar to The name becomes immutable once it was assigned.. - /// - internal static string TypeSystemObject_NameImmutable { + internal static string ThrowHelper_InputTypeExpected_Message { get { - return ResourceManager.GetString("TypeSystemObject_NameImmutable", resourceCulture); + return ResourceManager.GetString("ThrowHelper_InputTypeExpected_Message", resourceCulture); } } - /// - /// Looks up a localized string similar to The type definition is null which means that the type was initialized incorrectly.. - /// - internal static string TypeSystemObjectBase_DefinitionIsNull { + internal static string ThrowHelper_OutputTypeExpected_Message { get { - return ResourceManager.GetString("TypeSystemObjectBase_DefinitionIsNull", resourceCulture); + return ResourceManager.GetString("ThrowHelper_OutputTypeExpected_Message", resourceCulture); } } - /// - /// Looks up a localized string similar to The type name was not completed correctly and is still empty. Type names are not allowed to remain empty after name completion was executed. - ///Type: `{0}`. - /// - internal static string TypeSystemObjectBase_NameIsNull { + internal static string TagDirective_Name_NotValid { get { - return ResourceManager.GetString("TypeSystemObjectBase_NameIsNull", resourceCulture); + return ResourceManager.GetString("TagDirective_Name_NotValid", resourceCulture); } } - /// - /// Looks up a localized string similar to A Union type must define one or more unique member types.. - /// - internal static string UnionType_MustHaveTypes { + internal static string TagDirective_Descriptor_NotSupported { get { - return ResourceManager.GetString("UnionType_MustHaveTypes", resourceCulture); + return ResourceManager.GetString("TagDirective_Descriptor_NotSupported", resourceCulture); } } - /// - /// Looks up a localized string similar to Unable to resolve the specified type reference.. - /// - internal static string UnionType_UnableToResolveType { + internal static string ErrorHelper_DuplicateFieldName_Message { get { - return ResourceManager.GetString("UnionType_UnableToResolveType", resourceCulture); + return ResourceManager.GetString("ErrorHelper_DuplicateFieldName_Message", resourceCulture); } } - /// - /// Looks up a localized string similar to The union type extension can only be merged with an union type.. - /// - internal static string UnionTypeExtension_CannotMerge { + internal static string ErrorHelper_DuplicateDataMiddlewareDetected_Message { get { - return ResourceManager.GetString("UnionTypeExtension_CannotMerge", resourceCulture); + return ResourceManager.GetString("ErrorHelper_DuplicateDataMiddlewareDetected_Message", resourceCulture); } } - /// - /// Looks up a localized string similar to Unknown format. Guid supports the following format chars: {{ `N`, `D`, `B`, `P` }}. - /// https://docs.microsoft.com/en-us/dotnet/api/system.buffers.text.utf8parser.tryparse?view=netcore-3.1#System_Buffers_Text_Utf8Parser_TryParse_System_ReadOnlySpan_System_Byte__System_Guid__System_Int32__System_Char. - /// - internal static string UuidType_FormatUnknown { + internal static string SchemaException_UnexpectedError { get { - return ResourceManager.GetString("UuidType_FormatUnknown", resourceCulture); + return ResourceManager.GetString("SchemaException_UnexpectedError", resourceCulture); } } - /// - /// Looks up a localized string similar to Variable `{0}` of type `{1}` must be an input type.. - /// - internal static string VariableValueBuilder_InputType { + internal static string SchemaException_ErrorSummaryText { get { - return ResourceManager.GetString("VariableValueBuilder_InputType", resourceCulture); + return ResourceManager.GetString("SchemaException_ErrorSummaryText", resourceCulture); } } - /// - /// Looks up a localized string similar to Variable `{0}` got invalid value.. - /// - internal static string VariableValueBuilder_InvalidValue { + internal static string ResolverContextExtensions_IsSelected_FieldNameEmpty { get { - return ResourceManager.GetString("VariableValueBuilder_InvalidValue", resourceCulture); + return ResourceManager.GetString("ResolverContextExtensions_IsSelected_FieldNameEmpty", resourceCulture); } } - /// - /// Looks up a localized string similar to The type node kind is not supported.. - /// - internal static string VariableValueBuilder_NodeKind { + internal static string ObjectToDictionaryConverter_CycleInObjectGraph { get { - return ResourceManager.GetString("VariableValueBuilder_NodeKind", resourceCulture); + return ResourceManager.GetString("ObjectToDictionaryConverter_CycleInObjectGraph", resourceCulture); } } - /// - /// Looks up a localized string similar to Variable `{0}` of type `{1}` must not be null.. - /// - internal static string VariableValueBuilder_NonNull { + internal static string SemanticNonNullDirectiveType_Description { get { - return ResourceManager.GetString("VariableValueBuilder_NonNull", resourceCulture); + return ResourceManager.GetString("SemanticNonNullDirectiveType_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Detected non-null violation in variable `{0}`.. - /// - internal static string VariableValueBuilder_NonNull_In_Graph { + internal static string SemanticNonNullDirectiveType_Levels_Description { get { - return ResourceManager.GetString("VariableValueBuilder_NonNull_In_Graph", resourceCulture); + return ResourceManager.GetString("SemanticNonNullDirectiveType_Levels_Description", resourceCulture); } } - /// - /// Looks up a localized string similar to Variable name mustn't be null or empty.. - /// - internal static string VariableValueBuilder_VarNameEmpty { + internal static string SemanticNonNullType_TypeIsSemanticNonNullType { get { - return ResourceManager.GetString("VariableValueBuilder_VarNameEmpty", resourceCulture); + return ResourceManager.GetString("SemanticNonNullType_TypeIsSemanticNonNullType", resourceCulture); } } } diff --git a/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx b/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx index 00b1dc464ba..bfdea17016d 100644 --- a/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx +++ b/src/HotChocolate/Core/src/Types/Properties/TypeResources.resx @@ -1003,4 +1003,10 @@ Type: `{0}` Cycle in object graph detected. + + + + + + diff --git a/src/HotChocolate/Core/src/Types/SchemaBuilder.cs b/src/HotChocolate/Core/src/Types/SchemaBuilder.cs index e538d629c02..b34a54db89b 100644 --- a/src/HotChocolate/Core/src/Types/SchemaBuilder.cs +++ b/src/HotChocolate/Core/src/Types/SchemaBuilder.cs @@ -37,6 +37,7 @@ public partial class SchemaBuilder : ISchemaBuilder typeof(InterfaceCompletionTypeInterceptor), typeof(MiddlewareValidationTypeInterceptor), typeof(EnableTrueNullabilityTypeInterceptor), + typeof(SemanticNonNullTypeInterceptor), ]; private SchemaOptions _options = new(); diff --git a/src/HotChocolate/Core/src/Types/SchemaOptions.cs b/src/HotChocolate/Core/src/Types/SchemaOptions.cs index 3bf03f731da..b6a0b8c34fb 100644 --- a/src/HotChocolate/Core/src/Types/SchemaOptions.cs +++ b/src/HotChocolate/Core/src/Types/SchemaOptions.cs @@ -15,58 +15,34 @@ public class SchemaOptions : IReadOnlySchemaOptions private BindingBehavior _defaultBindingBehavior = BindingBehavior.Implicit; private FieldBindingFlags _defaultFieldBindingFlags = FieldBindingFlags.Instance; - /// - /// Gets or sets the name of the query type. - /// + /// public string? QueryTypeName { get; set; } - /// - /// Gets or sets the name of the mutation type. - /// + /// public string? MutationTypeName { get; set; } - /// - /// Gets or sets the name of the subscription type. - /// + /// public string? SubscriptionTypeName { get; set; } - /// - /// Defines if the schema allows the query type to be omitted. - /// + /// public bool StrictValidation { get; set; } = true; - /// - /// Defines if the CSharp XML documentation shall be integrated. - /// + /// public bool UseXmlDocumentation { get; set; } = true; - /// - /// A delegate which defines the name of the XML documentation file to be read. - /// Only used if is true. - /// + /// public Func? ResolveXmlDocumentationFileName { get; set; } - /// - /// Defines if fields shall be sorted by name. - /// Default: false - /// + /// public bool SortFieldsByName { get; set; } - /// - /// Defines if types shall be removed from the schema that are - /// unreachable from the root types. - /// + /// public bool RemoveUnreachableTypes { get; set; } - /// - /// Defines if unused type system directives shall - /// be removed from the schema. - /// + /// public bool RemoveUnusedTypeSystemDirectives { get; set; } = true; - /// - /// Defines the default binding behavior. - /// + /// public BindingBehavior DefaultBindingBehavior { get => _defaultBindingBehavior; @@ -81,10 +57,7 @@ public BindingBehavior DefaultBindingBehavior } } - /// - /// Defines which members shall be by default inferred as GraphQL fields. - /// This default applies to and . - /// + /// public FieldBindingFlags DefaultFieldBindingFlags { get => _defaultFieldBindingFlags; @@ -99,137 +72,69 @@ public FieldBindingFlags DefaultFieldBindingFlags } } - /// - /// Defines on which fields a middleware pipeline can be applied on. - /// + /// public FieldMiddlewareApplication FieldMiddleware { get; set; } = FieldMiddlewareApplication.UserDefinedFields; - /// - /// Defines if the experimental directive introspection feature shall be enabled. - /// + /// public bool EnableDirectiveIntrospection { get; set; } - /// - /// The default directive visibility when directive introspection is enabled. - /// + /// public DirectiveVisibility DefaultDirectiveVisibility { get; set; } = DirectiveVisibility.Public; - /// - /// Defines that the default resolver execution strategy. - /// + /// public ExecutionStrategy DefaultResolverStrategy { get; set; } = ExecutionStrategy.Parallel; - /// - /// Defines if the order of important middleware components shall be validated. - /// + /// public bool ValidatePipelineOrder { get; set; } = true; - /// - /// Defines if the runtime types of types shall be validated. - /// + /// public bool StrictRuntimeTypeValidation { get; set; } - /// - /// Defines a delegate that determines if a runtime - /// is an instance of an . - /// + /// public IsOfTypeFallback? DefaultIsOfTypeCheck { get; set; } - /// - /// Defines if the OneOf spec RFC is enabled. This feature is experimental. - /// + /// public bool EnableOneOf { get; set; } = true; - /// - /// Defines if the schema building process shall validate that all nodes are resolvable through `node`. - /// + /// public bool EnsureAllNodesCanBeResolved { get; set; } = true; - /// - /// Defines if flag enums should be inferred as object value nodes - /// - /// - /// Given the following enum - ///
- /// - /// [Flags] - /// public enum Example { First, Second, Third } - /// - /// public class Query { public Example Loopback(Example input) => input; - /// - ///
- /// The following schema is produced - ///
- /// - /// type Query { - /// loopback(input: ExampleFlagsInput!): ExampleFlags - /// } - /// - /// type ExampleFlags { - /// isFirst: Boolean! - /// isSecond: Boolean! - /// isThird: Boolean! - /// } - /// - /// input ExampleFlagsInput { - /// isFirst: Boolean - /// isSecond: Boolean - /// isThird: Boolean - /// } - /// - ///
+ /// public bool EnableFlagEnums { get; set; } - /// - /// Enables the @defer directive. - /// Defer and stream both are at the moment preview features. - /// + /// public bool EnableDefer { get; set; } - /// - /// Enables the @stream directive. - /// Defer and stream both are at the moment preview features. - /// + /// public bool EnableStream { get; set; } - /// - /// Specifies the maximum allowed nodes that can be fetched at once through the nodes field. - /// + /// + public bool EnableSemanticNonNull { get; set; } + + /// public int MaxAllowedNodeBatchSize { get; set; } = 50; - /// - /// Specified if the leading I shall be stripped from the interface name. - /// + /// public bool StripLeadingIFromInterface { get; set; } - /// - /// Specifies that the true nullability proto type shall be enabled. - /// + /// public bool EnableTrueNullability { get; set; } - /// - /// Specifies that the @tag directive shall be registered with the type system. - /// + /// public bool EnableTag { get; set; } = true; - /// - /// Defines the default dependency injection scope for query fields. - /// + /// public DependencyInjectionScope DefaultQueryDependencyInjectionScope { get; set; } = DependencyInjectionScope.Resolver; - /// - /// Defines the default dependency injection scope for mutation fields. - /// + /// public DependencyInjectionScope DefaultMutationDependencyInjectionScope { get; set; } = DependencyInjectionScope.Request; - /// - /// Defines if the root field pages shall be published to the promise cache. - /// + /// public bool PublishRootFieldPagesToPromiseCache { get; set; } = true; /// @@ -263,6 +168,7 @@ public static SchemaOptions FromOptions(IReadOnlySchemaOptions options) EnableFlagEnums = options.EnableFlagEnums, EnableDefer = options.EnableDefer, EnableStream = options.EnableStream, + EnableSemanticNonNull = options.EnableSemanticNonNull, DefaultFieldBindingFlags = options.DefaultFieldBindingFlags, MaxAllowedNodeBatchSize = options.MaxAllowedNodeBatchSize, StripLeadingIFromInterface = options.StripLeadingIFromInterface, diff --git a/src/HotChocolate/Core/src/Types/SemanticNonNullTypeInterceptor.cs b/src/HotChocolate/Core/src/Types/SemanticNonNullTypeInterceptor.cs new file mode 100644 index 00000000000..44a0befe9b5 --- /dev/null +++ b/src/HotChocolate/Core/src/Types/SemanticNonNullTypeInterceptor.cs @@ -0,0 +1,152 @@ +#nullable enable + +using HotChocolate.Configuration; +using HotChocolate.Language; +using HotChocolate.Resolvers; +using HotChocolate.Types; +using HotChocolate.Types.Descriptors; +using HotChocolate.Types.Descriptors.Definitions; +using HotChocolate.Types.Helpers; + +namespace HotChocolate; + +public class SemanticNonNullTypeInterceptor : TypeInterceptor +{ + private ITypeInspector _typeInspector = null!; + + internal override bool IsEnabled(IDescriptorContext context) + => context.Options.EnableSemanticNonNull; + + internal override void InitializeContext( + IDescriptorContext context, + TypeInitializer typeInitializer, + TypeRegistry typeRegistry, + TypeLookup typeLookup, + TypeReferenceResolver typeReferenceResolver) + { + _typeInspector = context.TypeInspector; + } + + public override void OnAfterCompleteName(ITypeCompletionContext completionContext, DefinitionBase definition) + { + if (completionContext.IsIntrospectionType) + { + return; + } + + if (definition is ObjectTypeDefinition objectDef) + { + foreach (var field in objectDef.Fields) + { + if (field.IsIntrospectionField) + { + continue; + } + + ApplySemanticNonNullDirective(field, completionContext); + + field.FormatterDefinitions.Add(CreateSemanticNonNullResultFormatterDefinition()); + } + } + else if (definition is InterfaceTypeDefinition interfaceDef) + { + foreach (var field in interfaceDef.Fields) + { + ApplySemanticNonNullDirective(field, completionContext); + } + } + } + + private void ApplySemanticNonNullDirective( + OutputFieldDefinitionBase field, + ITypeCompletionContext completionContext) + { + if (!HasNonNullType(field)) + { + return; + } + + var directiveDependency = new TypeDependency( + _typeInspector.GetTypeRef(typeof(SemanticNonNullDirective)), + TypeDependencyFulfilled.Completed); + + ((RegisteredType)completionContext).Dependencies.Add(directiveDependency); + + field.AddDirective(new SemanticNonNullDirective(), _typeInspector); + + field.Type = RewriteTypeToNullableType(field, _typeInspector); + } + + private static bool HasNonNullType(OutputFieldDefinitionBase definition) + { + var reference = definition.Type; + + if (reference is ExtendedTypeReference extendedTypeRef) + { + return !extendedTypeRef.Type.IsNullable; + } + + if (reference is SchemaTypeReference schemaRef) + { + return schemaRef.Type is NonNullType; + } + + if (reference is SyntaxTypeReference syntaxRef) + { + return syntaxRef.Type is NonNullTypeNode; + } + + return false; + } + + private static TypeReference RewriteTypeToNullableType( + OutputFieldDefinitionBase definition, + ITypeInspector typeInspector) + { + var reference = definition.Type; + + if (reference is ExtendedTypeReference extendedTypeRef) + { + return extendedTypeRef.Type.IsNullable + ? extendedTypeRef + : extendedTypeRef.WithType( + typeInspector.ChangeNullability(extendedTypeRef.Type, true)); + } + + if (reference is SchemaTypeReference schemaRef) + { + return schemaRef.Type is NonNullType nnt + ? schemaRef.WithType(nnt.Type) + : schemaRef; + } + + if (reference is SyntaxTypeReference syntaxRef) + { + return syntaxRef.Type is NonNullTypeNode nnt + ? syntaxRef.WithType(nnt.Type) + : syntaxRef; + } + + throw new NotSupportedException(); + } + + private static ResultFormatterDefinition CreateSemanticNonNullResultFormatterDefinition() + => new((ctx, result) => + { + if (result is null) + { + throw new GraphQLException(CreateSemanticNonNullViolationError(ctx)); + } + + return result; + }, + key: WellKnownMiddleware.SemanticNonNull, + isRepeatable: false); + + private static IError CreateSemanticNonNullViolationError(IResolverContext context) + => ErrorBuilder.New() + .SetMessage("TODO") + .AddLocation(context.Selection.SyntaxNode) + .SetPath(context.Path) + .Build(); +} diff --git a/src/HotChocolate/Core/src/Types/Types/Directives/DirectiveTypeInterceptor.cs b/src/HotChocolate/Core/src/Types/Types/Directives/DirectiveTypeInterceptor.cs index fec40f37540..80303544ff0 100644 --- a/src/HotChocolate/Core/src/Types/Types/Directives/DirectiveTypeInterceptor.cs +++ b/src/HotChocolate/Core/src/Types/Types/Directives/DirectiveTypeInterceptor.cs @@ -32,6 +32,7 @@ internal override void OnBeforeRegisterSchemaTypes( if (directiveType is { IsTypeSystemDirective: true, IsExecutableDirective: false } && !directiveType.Name.EqualsOrdinal(WellKnownDirectives.Deprecated) && !directiveType.Name.EqualsOrdinal(SpecifiedByDirectiveType.Names.SpecifiedBy) && + !directiveType.Name.Equals(WellKnownDirectives.SemanticNonNull) && !_usedDirectives.Contains(directiveType)) { (discarded ??= []).Add(directiveType); diff --git a/src/HotChocolate/Core/src/Types/Types/Directives/Directives.cs b/src/HotChocolate/Core/src/Types/Types/Directives/Directives.cs index 716b0259114..362a883a4d1 100644 --- a/src/HotChocolate/Core/src/Types/Types/Directives/Directives.cs +++ b/src/HotChocolate/Core/src/Types/Types/Directives/Directives.cs @@ -15,6 +15,7 @@ public static class Directives WellKnownDirectives.Stream, WellKnownDirectives.Defer, WellKnownDirectives.OneOf, + WellKnownDirectives.SemanticNonNull ]; internal static IReadOnlyList CreateReferences( @@ -38,6 +39,11 @@ internal static IReadOnlyList CreateReferences( directiveTypes.Add(typeInspector.GetTypeRef(typeof(StreamDirectiveType))); } + if (descriptorContext.Options.EnableSemanticNonNull) + { + directiveTypes.Add(typeInspector.GetTypeRef(typeof(SemanticNonNullDirective))); + } + if (descriptorContext.Options.EnableTag) { directiveTypes.Add(typeInspector.GetTypeRef(typeof(Tag))); diff --git a/src/HotChocolate/Core/src/Types/Types/Directives/SemanticNonNullDirective.cs b/src/HotChocolate/Core/src/Types/Types/Directives/SemanticNonNullDirective.cs new file mode 100644 index 00000000000..be32735eae2 --- /dev/null +++ b/src/HotChocolate/Core/src/Types/Types/Directives/SemanticNonNullDirective.cs @@ -0,0 +1,16 @@ +#nullable enable + +namespace HotChocolate.Types; + +[DirectiveType(WellKnownDirectives.SemanticNonNull, DirectiveLocation.FieldDefinition, IsRepeatable = false)] +[GraphQLDescription(Description)] +public sealed class SemanticNonNullDirective +{ + public const string Description = "TODO"; + public const string LevelsDescription = "TODO"; + + [GraphQLDescription(LevelsDescription)] + [GraphQLType>>] + [DefaultValueSyntax("[0]")] + public IReadOnlyList? Levels { get; set; } = [0]; +} diff --git a/src/HotChocolate/Core/src/Types/Types/Factories/SdlToTypeSystemHelper.cs b/src/HotChocolate/Core/src/Types/Types/Factories/SdlToTypeSystemHelper.cs index 0e12f49594d..fa11c20e8ef 100644 --- a/src/HotChocolate/Core/src/Types/Types/Factories/SdlToTypeSystemHelper.cs +++ b/src/HotChocolate/Core/src/Types/Types/Factories/SdlToTypeSystemHelper.cs @@ -17,6 +17,11 @@ public static void AddDirectives( { foreach (var directive in ownerSyntax.Directives) { + if (directive.Name.Value == WellKnownDirectives.SemanticNonNull) + { + continue; + } + if (context.TryGetSchemaDirective(directive, out var schemaDirective)) { schemaDirective.ApplyConfiguration(context, directive, owner, path); diff --git a/src/HotChocolate/Core/test/Types.Tests/SemanticNonNullTests.cs b/src/HotChocolate/Core/test/Types.Tests/SemanticNonNullTests.cs new file mode 100644 index 00000000000..12f037b15ac --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/SemanticNonNullTests.cs @@ -0,0 +1,47 @@ +#nullable enable + +using HotChocolate.Execution; +using HotChocolate.Tests; +using Microsoft.Extensions.DependencyInjection; + +namespace HotChocolate; + +public class SemanticNonNullTests +{ + [Fact] + public async Task Test() + { + await new ServiceCollection() + .AddGraphQL() + .ModifyOptions(o => o.EnableSemanticNonNull = true) + .AddQueryType() + .BuildSchemaAsync() + .MatchSnapshotAsync(); + } + + public class Query + { + [GraphQLNonNullType()] + public string? Scalar { get; } + + [GraphQLNonNullType] + public string?[]? ScalarArray { get; } + + [GraphQLNonNullType] + public string?[]?[]? ScalarNestedArray { get; } + + [GraphQLNonNullType] + public Foo? Object { get; } + + [GraphQLNonNullType] + public Foo?[]? ObjectArray { get; } + + [GraphQLNonNullType] + public Foo?[]?[]? ObjectNestedArray { get; } + } + + public class Foo + { + public string Bar { get; } = default!; + } +} diff --git a/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SemanticNonNullTests.Test.snap b/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SemanticNonNullTests.Test.snap new file mode 100644 index 00000000000..1707a7932ea --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/__snapshots__/SemanticNonNullTests.Test.snap @@ -0,0 +1,19 @@ +schema { + query: Query +} + +type Foo { + bar: String @semanticNonNull +} + +type Query { + scalar: String @semanticNonNull + scalarArray: [String] @semanticNonNull + scalarNestedArray: [[String]] @semanticNonNull + object: Foo @semanticNonNull + objectArray: [Foo] @semanticNonNull + objectNestedArray: [[Foo]] @semanticNonNull +} + +"TODO" +directive @semanticNonNull("TODO" levels: [Int!] = [ 0 ]) on FIELD_DEFINITION