Skip to content

Commit

Permalink
Merge pull request #281 from 99designs/introspection-default-args
Browse files Browse the repository at this point in the history
Fix missing default args on types
  • Loading branch information
vektah authored Aug 10, 2018
2 parents bf23529 + b808253 commit 3575c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion graphql/introspection/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (t *Type) Fields(includeDeprecated bool) []Field {
Type: WrapTypeFromType(t.schema, arg.Type),
Name: arg.Name,
Description: arg.Description,
DefaultValue: defaultValue(f.DefaultValue),
DefaultValue: defaultValue(arg.DefaultValue),
})
}

Expand Down
4 changes: 2 additions & 2 deletions integration/schema-expected.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# source: http://localhost:8080/query
# timestamp: Thu Aug 09 2018 15:54:55 GMT+1000 (AEST)
# timestamp: Fri Aug 10 2018 11:50:28 GMT+1000 (AEST)

enum DATE_FILTER_OP {
EQ
Expand Down Expand Up @@ -32,7 +32,7 @@ type Query {
date(filter: DateFilter!): Boolean!
viewer: Viewer
jsonEncoding: String!
error(type: ErrorType): Boolean!
error(type: ErrorType = NORMAL): Boolean!
}

type User {
Expand Down

0 comments on commit 3575c28

Please sign in to comment.