Skip to content

Feature Request - Pre-mutate lambda Hook #8171

@jdgamble555

Description

@jdgamble555

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 back in the hands of the database creators.

J

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalearea/graphqlIssues related to GraphQL support on Dgraph.communityIssue or PR created by the community.kind/featureSomething completely new we should consider.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions