I'm having an issue loading a very large 2.7mb GraphQL schema.json file. The service appears to parse and load the definitions correctly, but the inspector doesn't seem to have access to the types.
I've pared down the schema file, and it appears that when I cut it down to below the default 2.5mb limit, the inspector suddenly can validate queries against the schema.
I don't know if there's a way to work around that, so that the inspector is still available even if the schema file size is very large.
Version and Environment Details
Operation system: OS X 10.14.5
IDE name and version: IntelliJ Idea Ultimate 2019.1.3
Plugin version: v2.2.0
Expected Behaviour
Schema files of arbitrary size (up to some reasonable limit—is 2.7mb unreasonable?) should continue to work with the inspector.
Actual Behaviour
Large schema.json files do not work with the inspector.
Steps to Reproduce
- Create a pretty big schema and record its file size in kilobytes
- Create a query in a JS file that makes use of the schema
- In IntelliJ, go to Help -> Edit Custom Properties
- In the properties file it opens, set
idea.max.intellisense.filesize={less than filesize from step #1}
- Restart IntelliJ
- Notice that inspections are now broken for that query
Workaround
Set idea.max.instellisense.filesize to a number greater than the schema file.
I'm having an issue loading a very large 2.7mb GraphQL schema.json file. The service appears to parse and load the definitions correctly, but the inspector doesn't seem to have access to the types.
I've pared down the schema file, and it appears that when I cut it down to below the default 2.5mb limit, the inspector suddenly can validate queries against the schema.
I don't know if there's a way to work around that, so that the inspector is still available even if the schema file size is very large.
Version and Environment Details
Operation system: OS X 10.14.5
IDE name and version: IntelliJ Idea Ultimate 2019.1.3
Plugin version: v2.2.0
Expected Behaviour
Schema files of arbitrary size (up to some reasonable limit—is 2.7mb unreasonable?) should continue to work with the inspector.
Actual Behaviour
Large schema.json files do not work with the inspector.
Steps to Reproduce
idea.max.intellisense.filesize={less than filesize from step #1}Workaround
Set
idea.max.instellisense.filesizeto a number greater than the schema file.