hasura / hasura/graphql-engine

Always provide session variables to queries

Open
#4,011 15 comments 13 reactions 1 assignee Claimed by @0x777 View on GitHub
a/authz c/server p/product/high support/needs-triage
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Currently, Hasura will provide session variables to mutations and "custom functions" created with 'track_function V2'.

I would really like Hasura to *always* pass session variables to postgres, whether running queries, mutations or custom functions.

My database is accessed by multiple clients, one of which is Hasura. My other clients use Postgres "configuration settings" (via `set_config`, `current_setting`) to provide authorization information used during queries. I'd like to leverage the same infrastructure when executing queries generated by Hasura.

A similar request was made in #3872.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.