hasura / hasura/graphql-engine

Arbitary type for optional column in enum tables

Open
#9,634 0 comments 0 reactions 0 assignees View on GitHub
k/enhancement t/native-dbs
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Right now enum [tables allow an optional column but the type of the optional column should be `text` ](https://hasura.io/docs/latest/schema/postgres/enums/#pg-create-enum-table)it would be nice to allow arbitrary type on the optional column.
There are many usages of that like saving additional data for the enum or use for custom sorting etc.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Hasura Postgres enum-table documentation and trace the implementation that restricts the optional column to text. Check the existing enum-table tests and determine how arbitrary PostgreSQL column types are represented and exposed. Done means supported types work for enum-table creation and their values remain usable for additional data or custom sorting.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.