Add validation for first parameter passed for campaign resolver lists
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