Skip to content

Add validation for first parameter passed for campaign resolver lists

Warren Gifford requested to merge es/first-arg-validation into main

Created by: eseliger

I've added two convenience methods on the graphqlutils ConnectionArgs to validate the first argument. This disallows any values < 0, in particular -1, which has a special meaning internally, but also -2 and below, which cause DB errors.

Works on https://github.com/sourcegraph/sourcegraph/issues/13369

Merge request reports

Loading