We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3978f8 commit 7e92253Copy full SHA for 7e92253
src/relay.ts
@@ -136,6 +136,9 @@ function parseCurserArgs(options: ResolveOffsetConnectionOptions) {
136
const defaultSize = options.defaultSize ?? DEFAULT_SIZE
137
const maxSize = options.maxSize ?? DEFAULT_MAX_SIZE
138
139
+ if (before && after)
140
+ throw new Error('Arguments "before" and "after" cannot be used together')
141
+
142
if (first != null && first < 0)
143
throw new Error('Argument "first" must be a non-negative integer')
144
0 commit comments