GraphZen
  • Home
  • Blog
  • Documentation
  • API
  • Get Started
Show / Hide Table of Contents

Class Directive

Inheritance
Object
Member
Directive
Implements
IDirective
IDirectiveDefinition
INamed
IDescription
IClrType
IArguments
IArgumentsDefinition
IMemberDefinition
ISyntaxConvertable
IDirectiveLocations
IDirectiveLocationsDefinition
Namespace: GraphZen.TypeSystem
Assembly: GraphZen.TypeSystem.dll
Syntax
[GraphQLName("__Directive")]
public class Directive : Member, IDirective, IDirectiveDefinition, INamed, IDescription, IClrType, IArguments, IArgumentsDefinition, IMemberDefinition, ISyntaxConvertable, IDirectiveLocations, IDirectiveLocationsDefinition

Constructors

Directive(String, String, IReadOnlyCollection<DirectiveLocation>, IEnumerable<IArgumentDefinition>, TypeResolver)

Declaration
public Directive(string name, string description, IReadOnlyCollection<DirectiveLocation> locations, IEnumerable<IArgumentDefinition> arguments, TypeResolver typeResolver)
Parameters
Type Name Description
String name
String description
IReadOnlyCollection<DirectiveLocation> locations
IEnumerable<IArgumentDefinition> arguments
TypeResolver typeResolver

Properties

Arguments

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

ClrType

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

Description

Declaration
public override string Description { get; }
Property Value
Type Description
String
Overrides
Member.Description

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

From(IDirectiveDefinition, TypeResolver)

Declaration
public static Directive From(IDirectiveDefinition definition, TypeResolver typeResolver)
Parameters
Type Name Description
IDirectiveDefinition definition
TypeResolver typeResolver
Returns
Type Description
Directive

GetArguments()

Declaration
[GraphQLName("args")]
public IEnumerable<Argument> GetArguments()
Returns
Type Description
IEnumerable<Argument>

ToSyntaxNode()

Declaration
public override SyntaxNode ToSyntaxNode()
Returns
Type Description
SyntaxNode
Overrides
Member.ToSyntaxNode()

Explicit Interface Implementations

IArgumentsDefinition.GetArguments()

Declaration
IEnumerable<IArgumentDefinition> IArgumentsDefinition.GetArguments()
Returns
Type Description
IEnumerable<IArgumentDefinition>

Implements

IDirective
IDirectiveDefinition
INamed
IDescription
IClrType
IArguments
IArgumentsDefinition
IMemberDefinition
ISyntaxConvertable
IDirectiveLocations
IDirectiveLocationsDefinition

Extension Methods

GraphQLTypeExtensions.Print(ISyntaxConvertable)
IArgumentsArgumentsAccessorExtensions.FindArgument(IArguments, String)
IArgumentsArgumentsAccessorExtensions.HasArgument(IArguments, String)
IArgumentsArgumentsAccessorExtensions.GetArgument(IArguments, String)
IArgumentsArgumentsAccessorExtensions.TryGetArgument(IArguments, String, out Argument)
Back to top Copyright © 2017-2019 GraphZen LLC