directus / directus/directus

GraphQL Validation Errors sometimes returned as Internal Server Error

Open
#21,264 4 comments 1 reaction 0 assignees View on GitHub
Bug Engine GraphQL
Dominant language
TypeScript
Stars
37.9k
Forks
4.9k
Avg merge
3d 21h
Merged PRs (30d)
36

Description

### Describe the Bug

When your mutation fails the GraphQL validation, the error is returned as an internal server error, which in turn means that non-admin users don't get to see the validation error message.

See https://github.com/directus/directus/discussions/17035#discussioncomment-8318694

### To Reproduce

Try performing a mutation with a wrong payload in the GraphQL endpoint

### Directus Version

10.8.3

### Hosting Strategy

Self-Hosted (Docker Image)

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.