graphile-engine icon indicating copy to clipboard operation
graphile-engine copied to clipboard

Add ability to insert, update and delete using QueryBuilder

Open hos opened this issue 6 years ago • 1 comments

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.

hos avatar Nov 13 '19 14:11 hos

See conversation on discord starting: https://discordapp.com/channels/489127045289476126/498852330754801666/644165263394340884

benjie avatar Nov 13 '19 14:11 benjie