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

Arity of implicit relations: Change Unspecified relations from one-to-one's to one-to-many's #102

Closed
schickling opened this issue Oct 9, 2019 · 1 comment
Assignees
Milestone

Comments

@schickling
Copy link
Member

If the back relation field is unspecified and the specified field is:

  • a list: infer the back relation field as singular field.
  • singular: infer the back relation as a list. So in both cases we would make
    sure that if only one side is specified the resulting relation would always be
    one to many.

Supersedes prisma/specs#164.

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

3 participants