@@ -114,8 +114,8 @@ export const PgConnectionArgFilterForwardRelationsPlugin: GraphileConfig.Plugin
114114 description : `Filter by the object’s \`${ fieldName } \` relation.` ,
115115 type : ForeignTableFilterType ,
116116 applyPlan : EXPORTABLE (
117- ( foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ) => function ( $where : PgConditionStep < any > , fieldArgs ) {
118- // assertAllowed(fieldArgs, "object");
117+ ( assertAllowed , foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ) => function ( $where : PgConditionStep < any > , fieldArgs ) {
118+ assertAllowed ( fieldArgs , "object" ) ;
119119 const $subQuery = $where . existsPlan ( {
120120 tableExpression : foreignTableExpression ,
121121 alias : foreignTable . name ,
@@ -132,7 +132,7 @@ export const PgConnectionArgFilterForwardRelationsPlugin: GraphileConfig.Plugin
132132 } ) ;
133133 fieldArgs . apply ( $subQuery ) ;
134134 } ,
135- [ foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ]
135+ [ assertAllowed , foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ]
136136 ) ,
137137 } )
138138 ) ,
@@ -159,8 +159,8 @@ export const PgConnectionArgFilterForwardRelationsPlugin: GraphileConfig.Plugin
159159 description : `A related \`${ fieldName } \` exists.` ,
160160 type : GraphQLBoolean ,
161161 applyPlan : EXPORTABLE (
162- ( foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ) => function ( $where : PgConditionStep < any > , fieldArgs ) {
163- // assertAllowed(fieldArgs, "scalar");
162+ ( assertAllowed , foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ) => function ( $where : PgConditionStep < any > , fieldArgs ) {
163+ assertAllowed ( fieldArgs , "scalar" ) ;
164164 const $subQuery = $where . existsPlan ( {
165165 tableExpression : foreignTableExpression ,
166166 alias : foreignTable . name ,
@@ -177,7 +177,7 @@ export const PgConnectionArgFilterForwardRelationsPlugin: GraphileConfig.Plugin
177177 ) ;
178178 } ) ;
179179 } ,
180- [ foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ]
180+ [ assertAllowed , foreignTable , foreignTableExpression , localAttributes , remoteAttributes , sql ]
181181 ) ,
182182 } )
183183 ) ,
0 commit comments