Skip to content

Commit 05ba3ef

Browse files
authored
Update limits.md
1 parent 942f3dd commit 05ba3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/fields/limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Always limit the number of items which can be returned from a list field. For ex
1515
```ruby
1616
field :items, Types::ItemType do
1717
# Cap the number of items at 30
18-
argument :limit, Int, default_value: 20, prepare: ->(limit, ctx) {[limit, 30].min}
18+
argument :limit, Integer, default_value: 20, prepare: ->(limit, ctx) {[limit, 30].min}
1919
resolve ->(obj, args, ctx) {
2020
obj.items.limit(args[:limit])
2121
}

0 commit comments

Comments
 (0)