hasura / hasura/graphql-engine

Feature Request for Inheritance: ability to query and mutate with `only`

Open
#6,948 0 comments 0 reactions 0 assignees View on GitHub
a/data/postgres k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Dear Hasura,

It would be great if we could use `only` keyword for tables using inheritance.

```sql
SELECT name, elevation
FROM ONLY cities
WHERE elevation > 500;
```
Maybe something like:

```graphql
{
cities(where: {only: {_eq: true}}) {
name
}
}
```

It would be great if `update_x_by_pk` should be only by default.

Thanks for considering,

Lydia

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.