JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
880 stars 97 forks source link

AWS types (appsync) not recognized #429

Closed ziutus closed 3 years ago

ziutus commented 3 years ago

Plugin is reporting error when I'm using using AWS types like AWSDate, AWSPhone etc. see https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html

jimkyndemeyer commented 3 years ago

Hi,

Thanks for using the plugin.

The plugin ships with the schema type definitions that are part of the GraphQL standard. New GraphQL frameworks arrive all the time, and they change their schema definitions, so it's not feasible to maintain in this project.

Framework-specific scalars and other types have to be defined in your project using GraphQL SDL. See https://graphql.org/learn/schema/#scalar-types

Typically framework types such as custom scalars are placed in a .graphql file in the project, but you can also defined them using tagged templates like in Apollo: https://github.com/jimkyndemeyer/graphql-config-examples/blob/master/extend-client-fields-and-directives/client-schema-extensions.js