Skip to content

Commit b62f32e

Browse files
authored
Update arguments.md
current would throw: GraphQL::Schema::InvalidTypeError (Query is invalid: field "foo" argument "category" Variable id of type "String!" is required and will not use the default value. Perhaps you meant to use type "String".)
1 parent dd22339 commit b62f32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/fields/arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ argument :category, !types.String
3636
Use `default_value: value` to provide a default value for the argument if not supplied in the query.
3737

3838
```ruby
39-
argument :category, !types.String, default_value: "Programming"
39+
argument :category, types.String, default_value: "Programming"
4040
```
4141

4242
Use `as: :alternateName` to use a different key from within your resolvers while

0 commit comments

Comments
 (0)