Closed piotrd closed 2 years ago
Hi @piotrd! Do you have any GraphQL schema in JSON format in your project? It could be any json file with similar structure:
{
"__schema": {
...
}
}
or
{
"data": {
"__schema": {
...
}
}
}
Fixed in 3.1.2. Will be available as soon as the plugin will be approved in the marketplace.
Hi @vepanimas. Sorry for the delay. I don't have a schema in JSON format. However, your fix seems to be working fine, so thank you!
@piotrd still could you please do a quick text search in the project for __schema
string, maybe you have a regular JSON file that contains it, but it's not a GraphQL schema. Otherwise, I can't imagine how you've got this exception because it should fail several lines before with that assertion assertTrue(introspectionResult.get("__schema") != null, () -> "__schema expected");
😕.
Indeed there was such a JSON file with schema, although I wasn't aware of its existence.
Description
If the info below is not enough, please let me know.
Stacktrace
Please paste the full stacktrace from the IDEA error popup.
Version and Environment Details
Operation system: macOS 10.15.7 IDE version: WS-213.5744.224 Plugin version: 3.1.0