1.0.8 • Published 5 years ago
@alechartung/postgraphile-upsert-plugin v1.0.8
postgraphile-upsert-plugin
add postgres upsert
mutations to postgraphile
install
yarn add postgraphile-upsert-plugin
usage
import { PgMutationUpsertPlugin } from 'postgraphile-upsert-plugin'
postgraphile(pgClient, 'yourSchema', {
appendPlugins: [PgMutationUpsertPlugin as any]
})
fire open PostGraphiQL
and look for mutation { upsert<ModelName> { ... } }
this is a typescript-ified knock off of the original upsert plugin