Skip to content

Commit

Permalink
renamed Input to InputObject
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed Oct 19, 2016
1 parent 6f2399a commit 8fa4155
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/exec/introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (r *typeResolver) Kind() string {
return "UNION"
case *schema.Enum:
return "ENUM"
case *schema.Input:
case *schema.InputObject:
return "INPUT_OBJECT"
case *schema.List:
return "LIST"
Expand All @@ -202,7 +202,7 @@ func (r *typeResolver) Name() string {
return t.Name
case *schema.Enum:
return t.Name
case *schema.Input:
case *schema.InputObject:
return t.Name
default:
panic("unreachable")
Expand Down
8 changes: 4 additions & 4 deletions internal/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Enum struct {
Values []string
}

type Input struct {
type InputObject struct {
Name string
Fields map[string]*Field
}
Expand All @@ -59,7 +59,7 @@ func (Object) isType() {}
func (Interface) isType() {}
func (Union) isType() {}
func (Enum) isType() {}
func (Input) isType() {}
func (InputObject) isType() {}
func (List) isType() {}
func (TypeReference) isType() {}

Expand Down Expand Up @@ -185,8 +185,8 @@ func parseUnionDecl(l *lexer.Lexer) *Union {
return union
}

func parseInputDecl(l *lexer.Lexer) *Input {
i := &Input{}
func parseInputDecl(l *lexer.Lexer) *InputObject {
i := &InputObject{}
i.Name = l.ConsumeIdent()
l.ConsumeToken('{')
i.Fields = parseFields(l)
Expand Down

0 comments on commit 8fa4155

Please sign in to comment.