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

Add a way to express a domain validation rule #157

Open
edobrb opened this issue Apr 15, 2022 · 1 comment
Open

Add a way to express a domain validation rule #157

edobrb opened this issue Apr 15, 2022 · 1 comment
Assignees
Labels
📅 approved New feature approved and scheduled ✨ feature request New feature or request
Milestone

Comments

@edobrb
Copy link
Collaborator

edobrb commented Apr 15, 2022

Example:

type Example @entity {
  field1: Int
  field2: Int
}

Either field1 or field2 must be defined but not both. The only way to do this now is through middleware.
It would be a nice way to express the rule declaratively.

@edobrb edobrb added ✨ feature request New feature or request 📅 approved New feature approved and scheduled labels Apr 15, 2022
@edobrb edobrb added this to the September 2022 milestone Apr 15, 2022
@edobrb edobrb self-assigned this Apr 15, 2022
@edobrb
Copy link
Collaborator Author

edobrb commented May 29, 2022

Some idea from #220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📅 approved New feature approved and scheduled ✨ feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant