hasura / hasura/graphql-engine

Presets for custom tracked function arguments

Open
#7,491 0 comments 0 reactions 0 assignees View on GitHub
k/v3-backlog
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Today, it is possible to set custom presents on table fields, which is one of the best Hasura features. The same is true for remote GraphqQL schemas.

It would be great if this feature could be extended to custom-tracked functions.

For instance, if I defined the following function:

```sql
create or replace function search_foo(tenant_id int, keyword text)
returns "foos" as
$$
...
$$;
```

I would like to add a preset on the `tenant_id` argument for certain roles. The argument should disappear from the GraphQL node and be internally provided from session variables.

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.