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

Class GraphQLDeprecatedAttribute

Inheritance
Object
Attribute
GraphQLDeprecatedAttribute
Implements
IGraphQLDirective
Namespace: GraphZen
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
Type Description
String

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Attribute.Equals(Object)

GetDirectiveLocations()

Declaration
public IEnumerable<DirectiveLocation> GetDirectiveLocations()
Returns
Type Description
IEnumerable<DirectiveLocation>

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Attribute.GetHashCode()

Implements

IGraphQLDirective
Back to top Copyright © 2017-2019 GraphZen LLC