graphile / graphile/graphile-engine

Improve "Could not find type named" error by citing plugin name or index and location in gql schema

Open
#609 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
764
Forks
128
PR merge metrics
No merged PRs in 30d

Description

This error:

```
((DEV)) @my-ns/server: A serious error occurred when building the initial schema (attempt 9). We'll try again in 8100ms. Error details:
((DEV)) @my-ns/server: Error: Could not find type named 'boolean'.
```

Would better read as:

```
Could not find type named 'boolean' in plugin 2 'MyCustomPlugin' in 'Query.myQuery'
```

As discussed just now in [Discord](https://discordapp.com/channels/489127045289476126/498852330754801666).

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.