Skip to content

Commit 80453af

Browse files
committed
Minor edits
1 parent b835935 commit 80453af

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/PgConnectionArgFilterOperatorsPlugin.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ export const PgConnectionArgFilterOperatorsPlugin: GraphileConfig.Plugin = {
8484
function (
8585
c: PgCodec<any, any, any, any, any, any, any>
8686
): PgCodec<any, any, any, any, any, any, any> {
87-
return c.domainOfCodec ? resolveDomains(c.domainOfCodec) : c;
87+
let current = c;
88+
while (current.domainOfCodec) {
89+
current = current.domainOfCodec;
90+
}
91+
return current;
8892
},
8993
[]
9094
);

src/PgConnectionArgFilterPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PgSelectStep, PgCodec } from "@dataplan/pg";
2-
import type { ConnectionStep } from "grafast";
2+
import type { ConnectionStep, FieldArgs } from "grafast";
33
import type {
44
GraphQLInputType,
55
GraphQLOutputType,
@@ -478,7 +478,7 @@ export const PgConnectionArgFilterPlugin: GraphileConfig.Plugin = {
478478
any,
479479
PgSelectStep
480480
>,
481-
fieldArgs: any
481+
fieldArgs: FieldArgs
482482
) {
483483
assertAllowed(fieldArgs, "object");
484484
const $pgSelect = $connection.getSubplan();

0 commit comments

Comments
 (0)