hasura / hasura/graphql-engine

Primary key column ordering not preserved

Open
#7,402 3 comments 0 reactions 0 assignees View on GitHub
c/console estimate/M k/bug p/longterm
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Given a table "foo", with
```
postgres=# \d "foo"
Table "foo"
Column | Type | Collation | Nullable | Default
---------------------+---------+-----------+----------+---------
xx | bigint | | not null |
bb | bigint | | not null |
aa | bigint | | not null |
Indexes:
"foo_pkey" PRIMARY KEY, btree ("xx", "bb", "aa")
```
The hasura console (v2.0.3) displays (Data > default > public > foo > Modify), misleadingly:
```
Primary Key
[Edit] ( aa, bb, xx ) - foo_pkey
```

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.