graphile / graphile/crystal

Improved error messages when getting an absent field from fieldArgs

Open
#1,812 2 comments 0 reactions 0 assignees View on GitHub
💅 enhancement 🙏 help-wanted 🤩 good-first-bug
Dominant language
TypeScript
Stars
12.9k
Forks
625
Avg merge
5h 23m
Merged PRs (30d)
24

Description

### Summary

Getting an incorrect field from a mutation FieldArgs results in a `unable to get type from undefined` error.

### Steps to reproduce

Try and get an absent field from a FieldArgs

### Expected results

More verbose error message clearly indicating that you're trying to get a field that doesn't exist.

### Actual results

Getting a can't read type from undefined error.

### Additional context

### Possible Solution

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.