graphile / graphile/graphile-engine

Add ability to insert, update and delete using QueryBuilder

Open
#564 1 comment 0 reactions 0 assignees View on GitHub
consider-for-v5 enhancement
Dominant language
JavaScript
Stars
764
Forks
128
PR merge metrics
No merged PRs in 30d

Description

In some cases it may be useful to have an option to append another query to automatically generated one. For example when I want to set `update_at` on update mutation. In this case I think it will be nice to wrap the main resolver and add query which will be executed with the main one. In this case `queryBuilder.update` will be useful.

Another case which I can think of now, creating journal of changes for example
```
user 6 created resource 23 (json payload of data)
user 4 updated resource 40 (json payload of changes)
```
In this case `queryBuilder.insert` will be useful.

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.