GraphZen
  • Home
  • Blog
  • Documentation
  • API
  • Get Started
  • GraphZen.TypeSystem
  • DirectiveDefinition
Show / Hide Table of Contents
  • GraphZen
    • DocumentValidator
    • GraphQLCanBeNullAttribute
    • GraphQLContext
    • GraphQLContextOptions
    • GraphQLContextOptions<TContext>
    • GraphQLContextOptionsBuilder
    • GraphQLContextOptionsBuilder<TContext>
    • GraphQLDeprecatedAttribute
    • GraphQLError
    • GraphQLException
    • GraphQLIgnoreAttribute
    • GraphQLListItemCanBeNullAttribute
    • GraphQLListItemNonNullAttribute
    • GraphQLNameAttribute
    • GraphQLNonNullAttribute
    • GraphQLObjectAttribute
    • GraphQLTypeAttribute
    • GraphQLUnionAttribute
    • GraphZenApplicationBuilderExtensions
    • GraphZenServiceCollectionExtensions
    • IDocumentValidator
    • IGraphQLDirective
    • PlaygroundApplicationBuilderExtensions
    • Program
  • GraphZen.CodeGen
    • CodeGenHelpers
    • CodeGenStringBuilderExtensions
    • CodeGenTasks
  • GraphZen.LanguageModel
    • ArgumentSyntax
    • ArgumentSyntaxExtensions
    • BooleanValueSyntax
    • BooleanValueSyntaxExtensions
    • Break
    • ContinueAction
    • DefinitionSyntax
    • DirectiveDefinitionSyntax
    • DirectiveDefinitionSyntaxExtensions
    • DirectiveLocation
    • DirectiveSyntax
    • DirectiveSyntaxExtensions
    • DocumentSyntax
    • DocumentSyntaxExtensions
    • EnumTypeDefinitionSyntax
    • EnumTypeDefinitionSyntaxExtensions
    • EnumTypeExtensionSyntax
    • EnumTypeExtensionSyntaxExtensions
    • EnumValueDefinitionSyntax
    • EnumValueDefinitionSyntaxExtensions
    • EnumValueSyntax
    • EnumValueSyntaxExtensions
    • ExecutableDefinitionSyntax
    • FieldDefinitionSyntax
    • FieldDefinitionSyntaxExtensions
    • FieldSyntax
    • FieldSyntaxExtensions
    • FloatValueSyntax
    • FloatValueSyntaxExtensions
    • FragmentDefinitionSyntax
    • FragmentDefinitionSyntaxExtensions
    • FragmentSpreadSyntax
    • FragmentSpreadSyntaxExtensions
    • GraphQLSyntaxVisitor
    • GraphQLSyntaxVisitor<TResult>
    • GraphQLSyntaxWalker
    • GraphQLSyntaxWalker<TResult>
    • IArgumentsNode
    • IDescribedSyntax
    • IDirectivesSyntax
    • IFieldsNode
    • IFragmentTypeConditionSyntax
    • INamedSyntax
    • InlineFragmentSyntax
    • InlineFragmentSyntaxExtensions
    • InputObjectTypeDefinitionSyntax
    • InputObjectTypeDefinitionSyntaxExtensions
    • InputObjectTypeExtensionSyntax
    • InputObjectTypeExtensionSyntaxExtensions
    • InputValueDefinitionSyntax
    • InputValueDefinitionSyntaxExtensions
    • InterfaceTypeDefinitionSyntax
    • InterfaceTypeDefinitionSyntaxExensions
    • InterfaceTypeDefinitionSyntaxExtensions
    • InterfaceTypeExtensionSyntax
    • InterfaceTypeExtensionSyntaxExtensions
    • IntValueSyntax
    • IntValueSyntaxExtensions
    • IParser
    • IPrinter
    • ISyntaxNodeLocation
    • ListTypeSyntax
    • ListTypeSyntaxExtensions
    • ListValueSyntax
    • ListValueSyntaxExtensions
    • NamedSyntaxExtensions
    • NamedTypeSyntax
    • NamedTypeSyntaxExtensions
    • NameSyntax
    • NameSyntaxExtensions
    • NonNullTypeSyntax
    • NonNullTypeSyntaxExtensions
    • NullableTypeSyntax
    • NullValueSyntax
    • NullValueSyntaxExtensions
    • ObjectFieldSyntax
    • ObjectFieldSyntaxExtensions
    • ObjectTypeDefinitionSyntax
    • ObjectTypeDefinitionSyntaxExtensions
    • ObjectTypeExtensionSyntax
    • ObjectTypeExtensionSyntaxExtensions
    • ObjectValueSyntax
    • ObjectValueSyntaxExtensions
    • OperationDefinitionSyntax
    • OperationDefinitionSyntaxExtensions
    • OperationType
    • OperationTypeDefinitionSyntax
    • OperationTypeDefinitionSyntaxExtensions
    • ParallelSyntaxWalker
    • PunctuatorSyntax
    • PunctuatorSyntaxExtensions
    • ScalarTypeDefinitionSyntax
    • ScalarTypeDefinitionSyntaxExtensions
    • ScalarTypeExtensionSyntax
    • ScalarTypeExtensionSyntaxExtensions
    • SchemaDefinitionSyntax
    • SchemaDefinitionSyntaxExtensions
    • SchemaExtensionSyntax
    • SchemaExtensionSyntaxExtensions
    • SelectionSetSyntax
    • SelectionSetSyntaxExtensions
    • SelectionSyntax
    • Skip
    • Source
    • SourceLocation
    • StringValueSyntax
    • StringValueSyntaxExtensions
    • SyntaxFactory
    • SyntaxKind
    • SyntaxLocation
    • SyntaxNode
    • SyntaxNodeExtensions
    • TypeDefinitionSyntax
    • TypeExtensionSyntax
    • TypeSyntax
    • TypeSystemDefinitionSyntax
    • TypeSystemExtensionSyntax
    • UnionTypeDefinitionSyntax
    • UnionTypeDefinitionSyntaxExtensions
    • UnionTypeExtensionSyntax
    • UnionTypeExtensionSyntaxExtensions
    • ValueSyntax
    • VariableDefinitionSyntax
    • VariableDefinitionSyntaxExtensions
    • VariableSyntax
    • VariableSyntaxExtensions
    • VisitAction
    • VistitorContext
  • GraphZen.LanguageModel.Validation
    • DocumentValidationContext
    • DocumentValidationRules
    • DocumentValidationRuleVisitor
    • ParallelValidationVisitor
    • ValidationContext
    • ValidationRule
    • ValidationRuleVisitor
  • GraphZen.LanguageModel.Validation.Rules
    • EnumTypesMustBeWellDefined
    • FieldArgsMustBeProperlyNamed
    • FieldArgumentsMustHaveInputTypes
    • InputObjectFieldsMustHaveInputTypes
    • InputObjectsMustHaveFields
    • InterfaceExtensionsShouldBeValid
    • InterfaceFieldsMustHaveOutputTypes
    • LoneSchemaDefinition
    • ObjectFieldsMustHaveOutputTypes
    • ObjectsCanOnlyImplementUniqueInterfaces
    • ObjectsMustAdhereToInterfaceTheyImplement
    • ObjectsMustHaveFields
    • SchemaMustHaveRootObjectTypes
    • UnionTypesMustBeValid
  • GraphZen.QueryEngine
    • ExecutionOptions
    • ExecutionResult
    • Executor
    • IExecutionContext
    • IExecutor
  • GraphZen.QueryEngine.Validation
    • IQueryValidator
    • QueryValidationContext
    • QueryValidationRules
    • QueryValidationRuleVisitor
    • QueryValidator
  • GraphZen.QueryEngine.Validation.Rules
    • ExecutableDefinitions
    • FieldsOnCorrectType
    • FragmentsOnCompositeTypes
    • InputDocumentNonConflictingVariableInference
    • KnownArgumentNames
    • KnownDirectives
    • KnownFragmentNames
    • KnownTypeNames
    • LoneAnonymousOperation
    • NoFragmentCycles
    • NoUndefinedVariables
    • NoUnusedFragments
    • NoUnusedVariables
    • OverlappingFieldsCanBeMerged
    • PossibleFragmentSpreads
    • ProvidedRequiredArguments
    • ScalarLeafs
    • SingleFieldSubscriptions
    • UniqueArgumentNames
    • UniqueDirectivesPerLocation
    • UniqueFragmentNames
    • UniqueInputFieldNames
    • UniqueOperationNames
    • UniqueVariableNames
    • ValuesOfCorrectType
    • VariablesAreInputTypes
    • VariablesInAllowedPosition
  • GraphZen.TypeSystem
    • AnnotatableMember
    • AnnotatableMemberDefinition
    • Argument
    • ArgumentDefinition
    • DefaultIDirectiveAnnotationSyntaxConverter
    • DeprecatedBuilderExtensions
    • Directive
    • DirectiveAnnotation
    • DirectiveBuilder<TDirective>
    • DirectiveDefinition
    • DirectiveDefinitionArgumentsAccessorExtensions
    • EnumType
    • EnumTypeBuilder<TEnum>
    • EnumTypeDefinition
    • EnumTypeDefinitionValuesAccessorExtensions
    • EnumTypeValuesAccessorExtensions
    • EnumTypeValuesByValueAccessorExtensions
    • EnumValue
    • EnumValueBuilder
    • EnumValueDefinition
    • Field
    • FieldArgumentsAccessorExtensions
    • FieldBuilder<TDeclaringType, TField, TContext>
    • FieldDefinition
    • FieldDefinitionArgumentsAccessorExtensions
    • FieldsDefinition
    • FieldsDefinitionFieldsAccessorExtensions
    • GraphQLTypeExtensions
    • GraphQLTypes
    • IAnnotableBuilder<TBuilder>
    • IArgumentsArgumentsAccessorExtensions
    • IArgumentsDefinitionBuilder<TBuilder>
    • IDirectiveBuilder<TDirective>
    • IEnumTypeBuilder<TEnumValue>
    • IEnumValueBuilder
    • IFieldBuilder<TDeclaringType, TField, TContext>
    • IFieldsDefinitionBuilder<TBuilder, TSource, TContext>
    • IInputObjectTypeBuilder<TInputObject>
    • IInterfaceTypeBuilder<TInterface, TContext>
    • InputField
    • InputFieldDefinition
    • InputObjectType
    • InputObjectTypeBuilder<TInputObject>
    • InputObjectTypeDefinition
    • InputObjectTypeDefinitionFieldsAccessorExtensions
    • InputObjectTypeFieldsAccessorExtensions
    • InputValue
    • InputValueBuilder
    • InputValueDefinition
    • InterfaceType
    • InterfaceTypeBuilder<TInterface, TContext>
    • InterfaceTypeDefinition
    • InterfaceTypeDefinitionFieldsAccessorExtensions
    • InterfaceTypeFieldsAccessorExtensions
    • Introspection
    • IObjectTypeBuilder<TObject, TContext>
    • IScalarTypeBuilder<TScalar, TValueNode>
    • ISchemaBuilder<TContext>
    • IsTypeOf<TObject, TContext>
    • ISyntaxConverter
    • IUnionTypeBuilder<TUnion, TContext>
    • LeafLiteralParser<TScalar, TValueNode>
    • LeafSerializer
    • LeafSerializer<TScalar>
    • LeafValueParser
    • LeafValueParser<TScalar>
    • ListType
    • Member
    • MemberDefinition
    • NamedType
    • NamedTypeDefinition
    • NonNullType
    • ObjectType
    • ObjectTypeBuilder<TObject, TContext>
    • ObjectTypeDefinition
    • ObjectTypeDefinitionFieldsAccessorExtensions
    • ObjectTypeFieldsAccessorExtensions
    • Resolver<TSource, TResult>
    • ScalarType
    • ScalarTypeBuilder<TScalar, TValueNode>
    • ScalarTypeDefinition
    • Schema
    • SchemaBuilder
    • SchemaBuilder<TContext>
    • SchemaBuilderExtensions
    • SchemaDefinition
    • SchemaDefinitionExtensions
    • SchemaExtensions
    • SchemaPrinter
    • SpecDirectives
    • SpecScalars
    • SyntaxConverter
    • SyntaxHelpers
    • TypeComparators
    • TypeIdentity
    • TypeKind
    • TypeKindHelpers
    • TypeReference
    • TypeResolver
    • TypeResolver<TSource, TContext>
    • UnionType
    • UnionTypeBuilder<TUnion, TContext>
    • UnionTypeDefinition
  • GraphZen.TypeSystem.Taxonomy
    • IAbstractType
    • IAbstractTypeDefinition
    • IAnnotatableDefinition
    • IArgument
    • IArgumentDefinition
    • IArguments
    • IArgumentsDefinition
    • IClrInfo
    • IClrType
    • ICompositeType
    • ICompositeTypeDefinition
    • IDeprecation
    • IDescription
    • IDirective
    • IDirectiveAnnotation
    • IDirectiveAnnotations
    • IDirectiveAnnotationsDefinition
    • IDirectiveDefinition
    • IDirectiveLocations
    • IDirectiveLocationsDefinition
    • IDirectives
    • IDirectivesDefinition
    • IEnumType
    • IEnumTypeDefinition
    • IEnumTypes
    • IEnumTypesDefinition
    • IEnumValue
    • IEnumValueDefinition
    • IEnumValues
    • IEnumValuesDefinition
    • IField
    • IFieldDefinition
    • IFields
    • IFieldsDefinition
    • IGraphQLType
    • IGraphQLTypeReference
    • IInputDefinition
    • IInputField
    • IInputFieldDefinition
    • IInputFields
    • IInputFieldsDefinition
    • IInputObjectType
    • IInputObjectTypeDefinition
    • IInputObjectTypes
    • IInputObjectTypesDefinition
    • IInputValue
    • IInputValueDefinition
    • IInterfaces
    • IInterfacesDefinition
    • IInterfaceType
    • IInterfaceTypeDefinition
    • IInterfaceTypes
    • IInterfaceTypesDefinition
    • ILeafType
    • ILeafTypeDefinition
    • IListType
    • ILiteralParser
    • ILiteralParserDefinition
    • IMember
    • IMemberDefinition
    • IMemberTypes
    • IMemberTypesDefinition
    • IMutableAbstractTypeDefinition
    • IMutableAnnotatableDefinition
    • IMutableArgumentDefinition
    • IMutableArgumentsDefinition
    • IMutableClrType
    • IMutableDefinition
    • IMutableDeprecation
    • IMutableDescription
    • IMutableDirectiveAnnotationsDefinition
    • IMutableDirectiveDefinition
    • IMutableDirectiveLocationsDefinition
    • IMutableDirectivesDefinition
    • IMutableEnumTypeDefinition
    • IMutableEnumTypesDefinition
    • IMutableEnumValueDefinition
    • IMutableEnumValuesDefinition
    • IMutableFieldDefinition
    • IMutableFieldsDefinition
    • IMutableInputFieldDefinition
    • IMutableInputFieldsDefinition
    • IMutableInputObjectTypeDefinition
    • IMutableInputObjectTypesDefinition
    • IMutableInputValueDefinition
    • IMutableInterfacesDefinition
    • IMutableInterfaceTypeDefinition
    • IMutableInterfaceTypesDefinition
    • IMutableLiteralParserDefinition
    • IMutableMemberTypesDefinition
    • IMutableMutationTypeDefinition
    • IMutableNamed
    • IMutableNamedTypeDefinition
    • IMutableObjectTypeDefinition
    • IMutableObjectTypesDefinition
    • IMutableQueryTypeDefinition
    • IMutableScalarTypeDefinition
    • IMutableScalarTypesDefinition
    • IMutableSchemaDefinition
    • IMutableSerializerDefinition
    • IMutableSubscriptionTypeDefinition
    • IMutableUnionTypeDefinition
    • IMutableUnionTypesDefinition
    • IMutableValueParserDefinition
    • IMutationType
    • IMutationTypeDefinition
    • INamed
    • INamedType
    • INamedTypeDefinition
    • INamedTypeReference
    • INonNullType
    • INullableType
    • IObjectType
    • IObjectTypeDefinition
    • IObjectTypes
    • IObjectTypesDefinition
    • IOutputDefinition
    • IQueryType
    • IQueryTypeDefinition
    • IScalarType
    • IScalarTypeDefinition
    • IScalarTypes
    • IScalarTypesDefinition
    • ISchema
    • ISchemaDefinition
    • ISerializer
    • ISerializerDefinition
    • ISubscriptionType
    • ISubscriptionTypeDefinition
    • ISyntaxConvertable
    • IUnionType
    • IUnionTypeDefinition
    • IUnionTypes
    • IUnionTypesDefinition
    • IValueParser
    • IValueParserDefinition
    • IWrappingNullableType
    • IWrappingType
  • GraphZen.Utilities
    • Helpers
    • TypeInfo

Class DirectiveDefinition

Inheritance
Object
MemberDefinition
DirectiveDefinition
Implements
IMutableDirectiveDefinition
IDirectiveDefinition
IMutableArgumentsDefinition
IArgumentsDefinition
IMutableDirectiveLocationsDefinition
IDirectiveLocationsDefinition
IMutableNamed
INamed
IMutableDefinition
IMemberDefinition
IMutableDescription
IDescription
IMutableClrType
IClrType
Inherited Members
MemberDefinition.Description
MemberDefinition.SetDescription(String, ConfigurationSource)
MemberDefinition.GetDescriptionConfigurationSource()
MemberDefinition.GetConfigurationSource()
MemberDefinition.UpdateConfigurationSource(ConfigurationSource)
Namespace: GraphZen.TypeSystem
Assembly: GraphZen.TypeSystem.dll
Syntax
public class DirectiveDefinition : MemberDefinition, IMutableDirectiveDefinition, IDirectiveDefinition, IMutableArgumentsDefinition, IArgumentsDefinition, IMutableDirectiveLocationsDefinition, IDirectiveLocationsDefinition, IMutableNamed, INamed, IMutableDefinition, IMemberDefinition, IMutableDescription, IDescription, IMutableClrType, IClrType, IInfrastructure<InternalDirectiveBuilder>

Constructors

DirectiveDefinition(String, Type, SchemaDefinition, ConfigurationSource)

Declaration
public DirectiveDefinition(string name, Type clrType, SchemaDefinition schema, ConfigurationSource configurationSource)
Parameters
Type Name Description
String name
Type clrType
SchemaDefinition schema
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource

Properties

Arguments

Declaration
public IReadOnlyDictionary<string, ArgumentDefinition> Arguments { get; }
Property Value
Type Description
IReadOnlyDictionary<String, ArgumentDefinition>

ClrType

Declaration
public Type ClrType { get; }
Property Value
Type Description
Type

Locations

Declaration
public IReadOnlyCollection<DirectiveLocation> Locations { get; }
Property Value
Type Description
IReadOnlyCollection<DirectiveLocation>

Name

Declaration
public string Name { get; }
Property Value
Type Description
String

Methods

AddLocation(DirectiveLocation, ConfigurationSource)

Declaration
public bool AddLocation(DirectiveLocation location, ConfigurationSource configurationSource)
Parameters
Type Name Description
DirectiveLocation location
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource
Returns
Type Description
Boolean

FindDirectiveLocationConfigurationSource(DirectiveLocation)

Declaration
public ConfigurationSource? FindDirectiveLocationConfigurationSource(DirectiveLocation directiveLocation)
Parameters
Type Name Description
DirectiveLocation directiveLocation
Returns
Type Description
Nullable<GraphZen.TypeSystem.Internal.ConfigurationSource>

FindIgnoredDirectiveLocationConfigurationSource(DirectiveLocation)

Declaration
public ConfigurationSource? FindIgnoredDirectiveLocationConfigurationSource(DirectiveLocation directiveLocation)
Parameters
Type Name Description
DirectiveLocation directiveLocation
Returns
Type Description
Nullable<GraphZen.TypeSystem.Internal.ConfigurationSource>

GetArguments()

Declaration
public IEnumerable<IArgumentDefinition> GetArguments()
Returns
Type Description
IEnumerable<IArgumentDefinition>

GetClrTypeConfigurationSource()

Declaration
public ConfigurationSource? GetClrTypeConfigurationSource()
Returns
Type Description
Nullable<GraphZen.TypeSystem.Internal.ConfigurationSource>

GetNameConfigurationSource()

Declaration
public ConfigurationSource GetNameConfigurationSource()
Returns
Type Description
GraphZen.TypeSystem.Internal.ConfigurationSource

GetOrAddArgument(String, ConfigurationSource)

Declaration
public ArgumentDefinition GetOrAddArgument(string name, ConfigurationSource configurationSource)
Parameters
Type Name Description
String name
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource
Returns
Type Description
ArgumentDefinition

IgnoreLocation(DirectiveLocation, ConfigurationSource)

Declaration
public bool IgnoreLocation(DirectiveLocation location, ConfigurationSource configurationSource)
Parameters
Type Name Description
DirectiveLocation location
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource
Returns
Type Description
Boolean

RenameArgument(ArgumentDefinition, String, ConfigurationSource)

Declaration
public bool RenameArgument(ArgumentDefinition argument, string name, ConfigurationSource configurationSource)
Parameters
Type Name Description
ArgumentDefinition argument
String name
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource
Returns
Type Description
Boolean

SetClrType(Type, ConfigurationSource)

Declaration
public bool SetClrType(Type clrType, ConfigurationSource configurationSource)
Parameters
Type Name Description
Type clrType
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource
Returns
Type Description
Boolean

SetName(String, ConfigurationSource)

Declaration
public bool SetName(string name, ConfigurationSource configurationSource)
Parameters
Type Name Description
String name
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource
Returns
Type Description
Boolean

UnignoreLocation(DirectiveLocation, ConfigurationSource)

Declaration
public bool UnignoreLocation(DirectiveLocation location, ConfigurationSource configurationSource)
Parameters
Type Name Description
DirectiveLocation location
GraphZen.TypeSystem.Internal.ConfigurationSource configurationSource
Returns
Type Description
Boolean

Explicit Interface Implementations

IMutableArgumentsDefinition.GetArguments()

Declaration
IEnumerable<ArgumentDefinition> IMutableArgumentsDefinition.GetArguments()
Returns
Type Description
IEnumerable<ArgumentDefinition>

Implements

IMutableDirectiveDefinition
IDirectiveDefinition
IMutableArgumentsDefinition
IArgumentsDefinition
IMutableDirectiveLocationsDefinition
IDirectiveLocationsDefinition
IMutableNamed
INamed
IMutableDefinition
IMemberDefinition
IMutableDescription
IDescription
IMutableClrType
IClrType

Extension Methods

DirectiveDefinitionArgumentsAccessorExtensions.FindArgument(DirectiveDefinition, String)
DirectiveDefinitionArgumentsAccessorExtensions.HasArgument(DirectiveDefinition, String)
DirectiveDefinitionArgumentsAccessorExtensions.GetArgument(DirectiveDefinition, String)
DirectiveDefinitionArgumentsAccessorExtensions.TryGetArgument(DirectiveDefinition, String, out ArgumentDefinition)
Back to top Copyright © 2017-2019 GraphZen LLC