Skip to content

Commit 37505cd

Browse files
committed
Ensure filters are applied before ordering
1 parent 708f570 commit 37505cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/PgConnectionArgFilterPlugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export const PgConnectionArgFilterPlugin: GraphileConfig.Plugin = {
3535
name: "PgConnectionArgFilterPlugin",
3636
version,
3737

38-
// after: ["PgTypesPlugin", "PgCodecsPlugin", "PgCodecs"],
38+
// Sometimes we want to order by things we filter by (e.g. if we're doing
39+
// fulltext search), so we should ensure that the filters are applied before
40+
// ordering.
41+
before: ["PgConnectionArgOrderByPlugin"],
3942
/*
4043
gather: {
4144
hooks: {

0 commit comments

Comments
 (0)