Skip to content

Commit

Permalink
Revert back directives to use var; const not applicable here
Browse files Browse the repository at this point in the history
  • Loading branch information
sogko authored and chris-ramon committed Mar 15, 2017
1 parent e3f255f commit 357bcc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions directives.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
const DefaultDeprecationReason = "No longer supported"

// SpecifiedRules The full list of specified directives.
const SpecifiedDirectives = []*Directive{
var SpecifiedDirectives = []*Directive{
IncludeDirective,
SkipDirective,
DeprecatedDirective,
Expand Down Expand Up @@ -101,7 +101,7 @@ func NewDirective(config DirectiveConfig) *Directive {
}

// IncludeDirective is used to conditionally include fields or fragments.
const IncludeDirective = NewDirective(DirectiveConfig{
var IncludeDirective = NewDirective(DirectiveConfig{
Name: "include",
Description: "Directs the executor to include this field or fragment only when " +
"the `if` argument is true.",
Expand All @@ -119,7 +119,7 @@ const IncludeDirective = NewDirective(DirectiveConfig{
})

// SkipDirective Used to conditionally skip (exclude) fields or fragments.
const SkipDirective = NewDirective(DirectiveConfig{
var SkipDirective = NewDirective(DirectiveConfig{
Name: "skip",
Description: "Directs the executor to skip this field or fragment when the `if` " +
"argument is true.",
Expand All @@ -137,7 +137,7 @@ const SkipDirective = NewDirective(DirectiveConfig{
})

// DeprecatedDirective Used to declare element of a GraphQL schema as deprecated.
const DeprecatedDirective = NewDirective(DirectiveConfig{
var DeprecatedDirective = NewDirective(DirectiveConfig{
Name: "deprecated",
Description: "Marks an element of a GraphQL schema as no longer supported.",
Args: FieldConfigArgument{
Expand Down

0 comments on commit 357bcc5

Please sign in to comment.