Skip to content

Commit 089d128

Browse files
committed
added a more descriptive comment to the backstop of the weightFunction for lists
1 parent 9ae34cf commit 089d128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/buildTypeWeights.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function parseObjectFields(
174174
// if there is no argument provided with the query, check the schema for a default
175175
multiplier = Number(arg.defaultValue);
176176
}
177-
// if there is no argument or default value, return 0 complexity
177+
// if there is no argument or defaultValue, multiplier will still be one, effectively making list size equel to 1 as a last resort
178178
return multiplier * (selectionsCost + weight);
179179
},
180180
};

0 commit comments

Comments
 (0)