In hasura you can use column presets to automatically populate table column with value from the jwt token. However I have a scenario where I don't want to directly write the session into the column but instead pass it down as a parameter of a custom postgress function I wrote which returns the correct value that should be used by default.
But I have no idea how to pass hasura session variable as the function parameter, or if even hasura supports that.
So how do I pass say 'x-hasura-user-id' as parameter of get_value() custom function?