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

What is the recommended way to validate input? #2025

Open
psirenny opened this issue Apr 14, 2024 · 0 comments
Open

What is the recommended way to validate input? #2025

psirenny opened this issue Apr 14, 2024 · 0 comments

Comments

@psirenny
Copy link

What is the recommended way to validate input? Some more questions:

  • Is it preferred to handle validation in a plugin or handle it in the database with constraints
  • If validating in the database, how to avoid aborting early in order to surface all errors to the client
  • How are validation errors typed and how do they bubble up to the GraphQL API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📝 Docs Improvements
Development

No branches or pull requests

1 participant