Skip to content

Commit

Permalink
gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed Feb 22, 2017
1 parent 612317b commit 306e27e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions introspection/introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,24 @@ func (r *Schema) SubscriptionType() *Type {

func (r *Schema) Directives() []*Directive {
return []*Directive{
&Directive{
{
name: "skip",
description: "Directs the executor to skip this field or fragment when the `if` argument is true.",
locations: []string{"FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"},
args: []*InputValue{
&InputValue{&common.InputValue{
{&common.InputValue{
Name: "if",
Desc: "Skipped when true.",
Type: &common.NonNull{OfType: r.schema.Types["Boolean"]},
}},
},
},
&Directive{
{
name: "include",
description: "Directs the executor to include this field or fragment only when the `if` argument is true.",
locations: []string{"FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"},
args: []*InputValue{
&InputValue{&common.InputValue{
{&common.InputValue{
Name: "if",
Desc: "Included when true.",
Type: &common.NonNull{OfType: r.schema.Types["Boolean"]},
Expand Down

0 comments on commit 306e27e

Please sign in to comment.