add postgres upsert mutations to postgraphile
npm install @fullstackio/postgraphile-upsert-pluginadd postgres upsert mutations to postgraphile
   
``bash`
yarn add @fullstackio/postgraphile-upsert-plugin
`bash`
postgraphile --append-plugins @fullstackio/postgraphile-upsert-plugin:PgMutationUpsertPlugin
See here for
more information about loading plugins with PostGraphile.
`js
const express = require("express");
const { postgraphile } = require("postgraphile");
const {
PgMutationUpsertPlugin
} = require("@fullstackio/postgraphile-upsert-plugin");
const app = express();
app.use(
postgraphile(pgConfig, schema, {
appendPlugins: [PgMutationUpsertPlugin]
})
);
app.listen(5000);
`
This plugin creates an addition operation to upsert