Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3: Enum type support #10588

Open
daniel-chambers opened this issue Nov 6, 2024 · 0 comments
Open

v3: Enum type support #10588

daniel-chambers opened this issue Nov 6, 2024 · 0 comments
Labels
c/v3-engine V3 Metadata and Engine c/v3-ndc-postgres Data connector for PostgreSQL engine k/enhancement New feature or improve an existing feature

Comments

@daniel-chambers
Copy link
Contributor

Component

  • GraphQL Engine
  • ndc-postgres

Is your proposal related to a problem?

If I have a table in my database that represents a fixed enumeration of values, and I use that as a way to constrain the values of a column in a table to match a value from that fixed enumeration, I want my API to also expose this fixed enumeration to API clients so they know what valid values they can expect to receive/send.

Describe the solution you'd like

In Hasura v2, we supported reading the contents of a Postgres table and generating a GraphQL enum type from it. This type was then used as the type for any columns that foreign-key referenced that table in my GraphQL API.

I'd like a similar solution in Hasura DDN.

@daniel-chambers daniel-chambers added k/enhancement New feature or improve an existing feature c/v3-engine V3 Metadata and Engine c/v3-ndc-postgres Data connector for PostgreSQL k/v3-backlog labels Nov 6, 2024
@codedmart codedmart added the engine label Nov 20, 2024 — with Linear
@codedmart codedmart removed the c/v3-engine V3 Metadata and Engine label Nov 20, 2024
@codedmart codedmart added the c/v3-engine V3 Metadata and Engine label Nov 20, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/v3-engine V3 Metadata and Engine c/v3-ndc-postgres Data connector for PostgreSQL engine k/enhancement New feature or improve an existing feature
Projects
Status: No status
Development

No branches or pull requests

3 participants