Hi! Many thanks for this plugin. It is really useful and I enjoy working with it a lot. Here is a problem I faced building small demo which uploads files using GraphQL
https://github.com/jaydenseric/graphql-multipart-request-spec
__Operation system__:
macOS 10.14.4
__IDE name and version__:
WebStorm 2018.3.6
Build #WS-183.6156.10, built on March 24, 2019
JRE: 1.8.0_152-release-1343-b28 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
__Plugin version__:
2.1.0
Schema doesn't displays and error for Upload data type
Schema reports an error for Upload data type

Define mutation schema which uses Uload data type
Hi,
Thanks for using the plugin.
The GraphQL spec doesn't include any built-in input types. The error reported in this case is that your schema doesn't define the Upload input type.
You would need to either define the Upload input type using SDL or ensure that it's defined in your GraphQL endpoint schema during introspection if you're fetching the schema that way.
__Edit:__ Apparently Upload should just be declared as a custom scalar: https://github.com/jaydenseric/graphql-upload#examples
In your case you can simply add the following line to your schema:
scalar Upload
Best regards,
Jim.
Unfortunately that is not always possible as setups such as apollo-server add it for us. Adding a custom scalar would duplicate it, leading to application errors.
@MartijnHols You should be able to declare the Upload scalar in a separate .graphql file that is only included in the schema discovery done by the plugin. Just make sure you don't include that same file in the type defs passed to the apollo server.
This approach is similar to how client-only fields can be added to the schema for Apollo Client: https://github.com/jimkyndemeyer/graphql-config-examples/tree/master/extend-client-fields-and-directives (note that in the example the GraphQL is in tagged template literals, but could just as well be plain .graphql files)
Most helpful comment
@MartijnHols You should be able to declare the Upload scalar in a separate .graphql file that is only included in the schema discovery done by the plugin. Just make sure you don't include that same file in the type defs passed to the apollo server.
This approach is similar to how client-only fields can be added to the schema for Apollo Client: https://github.com/jimkyndemeyer/graphql-config-examples/tree/master/extend-client-fields-and-directives (note that in the example the GraphQL is in tagged template literals, but could just as well be plain .graphql files)