Skip to content

Adding a new field/column programaticaly. #7294

Answered by motleydev
phxgbl asked this question in Question
Discussion options

You must be logged in to vote

If I understand correctly, this might be a good candidate for the new "schema sharing" feature that's landing in Hasura.

https://hasura.io/events/hasura-con-2021/talks/hasura-schema-sharing/

This would allow you to define a default set of columns that would be used as the starter for new tables. Otherwise, an event trigger that calls a remote service that uses the Hasura CLI to add a column to your table is probably what you are looking for.

New Table -> event trigger -> service -> update "New Table" with "Default Columns"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@phxgbl
Comment options

Answer selected by motleydev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants