import '../augmentations'; import type { GraphileConfig } from 'graphile-config'; /** * ConnectionFilterForwardRelationsPlugin * * Adds forward relation filter fields to table filter types. * A "forward" relation is one where the current table has a FK referencing another table. * * For example, if `orders` has `client_id` referencing `clients`, * then `OrderFilter` gets a `clientByClientId` field of type `ClientFilter`, * allowing queries like: * * ```graphql * allOrders(where: { * clientByClientId: { name: { startsWith: "Acme" } } * }) { ... } * ``` * * The SQL generated is an EXISTS subquery: * ```sql * WHERE EXISTS ( * SELECT 1 FROM clients * WHERE clients.id = orders.client_id * AND * ) * ``` */ export declare const ConnectionFilterForwardRelationsPlugin: GraphileConfig.Plugin;