graphile / graphile/crystal

What is the recommended way to validate input?

Open
#2,025 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.9k
Forks
625
Avg merge
5h 23m
Merged PRs (30d)
24

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.