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, but the plugin is attempting to pass an object. However, the Typescript type is a Plugin.
If you ignore typescript warnings and import the plugin's default key, it will build appropriately:
appendPlugins: [ // @ts-ignore ManyUpdatePlugin.default, ]
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, but the plugin is attempting to pass an object. However, the Typescript type is a Plugin.
If you ignore typescript warnings and import the plugin's default key, it will build appropriately:
appendPlugins: [ // @ts-ignore ManyUpdatePlugin.default, ]