-
Notifications
You must be signed in to change notification settings - Fork 96
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
Help: Unknown type "ID" #651
Comments
Hi @angelica-snowit! Sorry for the late reply. If it's still an issue for you, please follow the instructions here #438 (comment). It's also worth trying to update your installed GraphQL plugin to the latest version 4.0.0. |
Updated this morning. Wonderful: now not only ID and other scalars are not recognized, everything is marked as error. The schema appears to be empty, no matter how many time I clear cache and restart. |
@angelica-snowit I'm sorry to hear that 😞. Have you checked the logs? Is there anything related to GraphQL there? If you're using a schema in JSON format, you may try converting it into GraphQL to see if it helps. The easiest way to do this is by following the instructions in the screenshot below. Don't forget to change the |
Yes, I've already tried graphql schema (both generated that the same created by the plugin using the remote url), same result :( |
@angelica-snowit Okay, that seems very strange. We have some issues, but in your case, it doesn't work at all despite any efforts to fix it. We had some weird cases when it could behave that way:
|
Than you for the follow-up. I've already tried all this:
|
Maybe it's related to the schema itself then? Could you share a schema file (probably not, but I couldn't resist asking)? Have you tried providing some simple types as SDL definitions instead of using your current schema? Like:
|
I found my issue, I had to add my root directory as the project root, so it was an .idea issue in this project. I'm the only one using webstorm so I typically gitignore the idea file....I may change that practice. |
I cant't find a way for the plugin recognize standard scalars, like ID or String.
I keep getting
Error:(1, 33) Unknown type "ID"
All the custom types works well.
I've a basic configuration:
The local schema file is generated by GraphQL Code Generator.
The text was updated successfully, but these errors were encountered: