Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 578 Bytes

readme.md

File metadata and controls

21 lines (13 loc) · 578 Bytes

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