Skip to content

Commit 81df2bf

Browse files
pcraciunoiujkimbo
andauthored
Update graphene_django/fields.py
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
1 parent 70f696e commit 81df2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def resolve_connection(cls, connection, args, iterable, max_limit=None):
138138
list_slice_length = max(max_limit, list_length)
139139
else:
140140
list_length = len(iterable)
141-
list_slice_length = max_limit or list_length
141+
list_slice_length = max(max_limit, list_length)
142142

143143
after = get_offset_with_default(args.get("after"), -1) + 1
144144
list_slice_length += after

0 commit comments

Comments
 (0)