Open sanderhahn opened 4 years ago
Yeah, looking forward to run functions via mutations. It is not cool to create actions/lambdas to just call a function.
Volatile functions for queries are not intended to modify data
+1 for this. Anything new on this? It will basically help me not to create actions for login/signin/forgot-password
Any update on this?
Any update?
Sometimes you want to store and retrieve sensitive data such as passwords using pgcrypto that is already installed by default. People find this difficult to do using triggers, maybe Hasura could allow configuring a function or snippet to be performed on the data on mutations and queries in the metadata. For instance:
The snippets would be:
Query would override
_eq
or maybe its possible to create a custom operator_eq_crypt
. Snippets are flexible, but another simpler option would be marking the field as password field in the metadata and support this way of mutation/query without exposing the underlying sql.