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

create input should be "optional" #10

Open
yaquawa opened this issue May 13, 2021 · 0 comments
Open

create input should be "optional" #10

yaquawa opened this issue May 13, 2021 · 0 comments

Comments

@yaquawa
Copy link

yaquawa commented May 13, 2021

Take the example from the README:

type Post @model {
  id: ID!
  title: String! @default(value: "hello world")
  viewCount: Int @default(value: "9001")
  tag: Tag @default(value: "RANDOM")
}
enum Tag {
  NEWS
  RANDOM
}

the title field is a non-nullable field, but it should not be a required argument in the createXXX input type, that will be nonsense because we already have a default value now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant