Skip to content

Commit 1f8bcbd

Browse files
committed
More fixes
1 parent 6246875 commit 1f8bcbd

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

src/PgConnectionArgFilterAttributesPlugin.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,13 @@ import type { PgConditionStep, PgCodecWithAttributes } from "@dataplan/pg";
22

33
const { version } = require("../package.json");
44

5-
declare global {
6-
namespace GraphileBuild {
7-
interface BehaviorStrings {
8-
"attribute:filterBy": true;
9-
}
10-
}
11-
}
12-
135
export const PgConnectionArgFilterAttributesPlugin: GraphileConfig.Plugin = {
146
name: "PgConnectionArgFilterAttributesPlugin",
157
version,
168

179
schema: {
18-
behaviorRegistry: {
19-
add: {
20-
"attribute:filterBy": {
21-
description: "Can we filter by this attribute",
22-
entities: ["pgCodecAttribute"],
23-
},
24-
filterBy: {
25-
description: "Can we filter by this attribute",
26-
entities: ["pgCodecAttribute"],
27-
},
28-
},
29-
},
30-
3110
entityBehavior: {
32-
pgCodecAttribute: "filterBy",
11+
pgCodecAttribute: "attribute:filterBy",
3312
},
3413

3514
hooks: {

src/PgConnectionArgFilterCompositeTypeAttributesPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const PgConnectionArgFilterCompositeTypeAttributesPlugin: GraphileConfig.
3838
if (
3939
!build.behavior.pgCodecAttributeMatches(
4040
[codec, attributeName],
41-
"filter"
41+
"attribute:filterBy"
4242
)
4343
) {
4444
continue;

0 commit comments

Comments
 (0)