graphile / graphile/crystal

Add to behavior docs RemoveDefaultTableBehaviorPlugin

Open
#2,853 0 comments 0 reactions 0 assignees View on GitHub
📄 add-to-docs
Dominant language
TypeScript
Stars
12.9k
Forks
625
Avg merge
5h 23m
Merged PRs (30d)
24

Description

From Discord (https://discord.com/channels/489127045289476126/498852330754801666/1451006532006314075):

```ts
/**
* Remove insert/update/delete from tables by default
*/
export const RemoveDefaultTableBehaviorPlugin: GraphileConfig.Plugin = {
name: 'RemoveDefaultTableBehaviorPlugin',
version: '1.0.0',
schema: {
entityBehavior: {
pgResource: {
inferred(behavior) {
return ['-resource:delete', '-insert', '-update', behavior]
},
},
},
},
}
```

(Should that not be `-resource:insert`, `-resource:update`?)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.