import '../augmentations'; import type { GraphileConfig } from 'graphile-config'; /** * BulkInsertPlugin * * Registers `bulkCreateX` mutation fields on the root mutation type for * each resource that has the `bulkInsert` behavior. * * Uses `sideEffectWithPgClient` for raw SQL execution. The mutation * SQL uses `RETURNING ` (not `RETURNING *`) to respect * column-level SELECT grants. A follow-up SELECT retrieves the full * rows using only the returned PKs, ensuring the query runs through * the normal grant-aware pipeline. * * When `bulkRelational` is enabled, nested child records are detected * in the input and inserted in a layered fashion: parent rows first, * then child rows with FK values auto-populated from the parent PKs. * * Pattern from: https://github.com/pyramation/graphile-column-privileges-mutations */ export declare const BulkInsertPlugin: GraphileConfig.Plugin;