Class GraphQLDeprecatedAttribute
Inheritance
GraphQLDeprecatedAttribute
Assembly: GraphZen.Abstractions.dll
Syntax
public class GraphQLDeprecatedAttribute : Attribute, IGraphQLDirective
Constructors
GraphQLDeprecatedAttribute(String)
Marks an element of a GraphQL schema as no longer supported.
Declaration
public GraphQLDeprecatedAttribute(string reason = null)
Parameters
Type |
Name |
Description |
String |
reason |
Explains why this element was deprecated, usually also including a
suggestion for how to access supported similar data. Formatted
in Markdown.
|
Properties
Reason
Declaration
public string Reason { get; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetDirectiveLocations()
Declaration
public IEnumerable<DirectiveLocation> GetDirectiveLocations()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Implements