Lambda functions to decorate functions

On GitHub - dgraph-io/dgraph-lambda I only see @lambda added to properties. Will it also be possible to add them to decorate functions? I see some use cases for them:

  1. Logging every CRUD operation to a collection or external logging service for GDPR compliance.

  2. Apply rate limits.

  3. Checking if this specific query combination is allowed (something like persisted queries in Apollo).

Yes, it’s possible.

See: Query sever timestamps in GraphQL? - #11 by abhimanyusinghgaur