diff --git a/package.json b/package.json index 242652a..f8e47c7 100644 --- a/package.json +++ b/package.json @@ -19,11 +19,11 @@ "dependencies": { "graphile-build-pg": "^4.2.0", "pg-tsquery": "^6.4.2", - "postgraphile-plugin-connection-filter": "^1.0.0-beta.28" + "postgraphile-plugin-connection-filter": "^2.0.0" }, "peerDependencies": { "postgraphile-core": "^4.2.0", - "postgraphile-plugin-connection-filter": "^1.0.0-beta.28" + "postgraphile-plugin-connection-filter": "^2.0.0" }, "devDependencies": { "eslint": "^5.10.0", diff --git a/src/PostgraphileFullTextFilterPlugin.js b/src/PostgraphileFullTextFilterPlugin.js index e2efb53..874e53b 100644 --- a/src/PostgraphileFullTextFilterPlugin.js +++ b/src/PostgraphileFullTextFilterPlugin.js @@ -80,6 +80,7 @@ module.exports = function PostGraphileFulltextFilterPlugin(builder) { const InputType = getGqlInputTypeByTypeIdAndModifier(pgTsvType.id, null); addConnectionFilterOperator( + [InputType.name], 'matches', 'Performs a full text search on the field.', () => GraphQLString, @@ -89,9 +90,6 @@ module.exports = function PostGraphileFulltextFilterPlugin(builder) { queryBuilder.__fts_ranks[fieldName] = [identifier, tsQueryString]; return sql.query`${identifier} @@ to_tsquery(${sql.value(tsQueryString)})`; }, - { - allowedFieldTypes: [InputType.name], - }, ); return (_, build);