-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
More Information on Errors #1067
Comments
|
It looks like this error happens when a fields arguments reference an type that hasn't been implemented. In your case. Refs should generally not be printed as objectObject, so likely what's happening is a field is referencing some other type of object in the type field of it's options. What I would recommend is updating the error message (you can just edit it in node_modules) to include the ref and name passed in to the function. For the ref you can print it with describeRef the same way the missing ref is printed. The relevant code is here: pothos/packages/core/src/config-store.ts Line 211 in b037414
This should also be done in Pothos, but just doing it locally might help you track down where in the schema the error is coming from |
Something like |
Adding parentField is probably also useful. field will be the argument name, and parent field will be the field name you care about... So the message I mentioned above is probably slightly misleading |
any reason why that is not the default? |
No, just haven't had time to implement these changes, a PR would be more than welcome! |
Just pushed a fix with an improved error message |
thank you @hayes |
Hi,
i am running into errors and find the error message I get quite useless.
this doesnt have any information i can use. the schema.js:11 line is
builder.toSchema()
.is this lack of detail due to my setup and somehow fixable?
The text was updated successfully, but these errors were encountered: