import '../augmentations'; import type { GraphileConfig } from 'graphile-config'; /** * BulkRelationalPlugin * * Adds relational/nested insert support to bulk mutations. When enabled * via `bulkRelational: true`, parent values item input types gain optional * fields for each "has many" relation, allowing creation of parent and * child rows in a single mutation. * * Example: * mutation { * bulkCreateCategories(input: { * values: [{ * name: "Electronics" * products: [ * { name: "Laptop", price: "999.99" } * ] * }] * }) { affectedCount } * } * * The FK column on the child table (e.g. category_id) is automatically * populated from the parent's returned primary key. Nested input types * exclude FK columns so the user does not need to provide them. * * Limitations: * - ON CONFLICT cannot be used with nested inserts (throws an error) * - Only one level of nesting is supported in the initial implementation */ export declare const BulkRelationalPlugin: GraphileConfig.Plugin;