postgraphile-plugin-batch-create-update-delete
postgraphile-plugin-batch-create-update-delete copied to clipboard
A postgraphile plugin that allows for batch create, update, & delete mutations in a single transaction.
Example: - Table is named: `testing`, and is in schema `one` (`one.testing`) - Column is on this same table named: `status` (`one.testing.status`) and has a type of `status_type`, in schema...
Targeting esnext, importing `import ManyUpdatePlugin from 'postgraphile-plugin-many-create-update-delete';` and then using it in the appendPlugin array, `appendPlugins: [ ManyUpdatePlugin, ]` will fail with the error that the appendPlugins param accepts functions,...
I'm trying to use this for a batch deletion, but it doesn't work for me. This is the input created for my table's batch deletion operation: ``` """All input for...
Hey Tim, this PR seems to work. We'd likely want to add this to Many Update if this approach is correct
Hey Tim, great looking package here, I especially like the opt-in smart comments design. I have a query such as ```graphql mutation CreateManyPartsTransfers($partsTransfers: [PartsTransferInput!]!) { mnCreatePartsTransfer(input: { mnPartsTransfer: $partsTransfers })...
Add a tests similar to other postgraphile libraries for better code confidence and future updates.
Hi, I have a problem with this plugins, when I try to insert/update with the created mutations I have an error: ``` GraphQL error: permission denied for table X ```...
Add plugin options that allow conflict handling for inserts. This would allow updates (upsert), no action, failures (current default) based off the constraints or further options.
Better test/usage examples in the readme.
Update smart comments with better functionality to include individual level create, update, or delete mutations vs. including them all together as it is now.