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

Set array default #8179

Closed
tsongas opened this issue Jul 8, 2021 · 1 comment
Closed

Set array default #8179

tsongas opened this issue Jul 8, 2021 · 1 comment
Labels
kind/feature A request for a new feature. team/client Issue for team Client. team/schema Issue for team Schema. topic: scalar list [] topic: schema
Milestone

Comments

@tsongas
Copy link

tsongas commented Jul 8, 2021

Problem

I would like to set a default for an array i.e. roles Role[] @default([Role.USER])

Suggested solution

See syntax above.

Alternatives

Currently arrays are empty by default.

@pantharshit00 pantharshit00 added kind/feature A request for a new feature. topic: postgres list topic: schema team/schema Issue for team Schema. team/client Issue for team Client. labels Jul 11, 2021
@janpio
Copy link
Member

janpio commented Jun 11, 2022

This will be solved via #8330

@janpio janpio closed this as completed Jun 11, 2022
@janpio janpio added this to the 4.0.x milestone Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. team/client Issue for team Client. team/schema Issue for team Schema. topic: scalar list [] topic: schema
Projects
None yet
Development

No branches or pull requests

3 participants