outcaste-io / issues

File issues here across all public Outcaste Repositories
Apache License 2.0
6 stars 0 forks source link

Pre-lambda Hooks #11

Open jdgamble555 opened 2 years ago

jdgamble555 commented 2 years ago

Currently the Lambda Web Hooks worth AFTER the mutation has already been completed:

https://dgraph.io/docs/graphql/lambda/webhook/

https://discuss.dgraph.io/t/feature-request-lambda-pre-hooks/15626

I don't feel like typing out the myriad of things this would solve. An after mutation hook does not give access to the original data, does not allow you to do custom constrains, custom mutations before the original mutation, etc, etc....

This would allow us to write our own security. All other relational databases have this.

The argument for the old DGraph employees was that it slows down the mutation. This was ridiculous.

https://discuss.dgraph.io/t/webhook-lambda-on-add-update-delete-mutations/12904/7

This one feature alone solves 20 problems at once and puts DGraph / Outserv back in the hands of the database creators.

J