-
-
Notifications
You must be signed in to change notification settings - Fork 611
Open
Labels
Description
From Discord (https://discord.com/channels/489127045289476126/498852330754801666/1451006532006314075):
/**
* Remove insert/update/delete from tables by default
*/
export const RemoveDefaultTableBehaviorPlugin: GraphileConfig.Plugin = {
name: 'RemoveDefaultTableBehaviorPlugin',
version: '1.0.0',
schema: {
entityBehavior: {
pgCodecAttribute: 'table',
pgResource: {
inferred(behavior) {
return ['-resource:delete', '-insert', '-update', behavior]
},
},
},
},
}(Should that not be -resource:insert, -resource:update? Why are we adding table to attributes?)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🌳 Triage