File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
main/com/intellij/lang/jsgraphql/ide/editor
test/com/intellij/lang/jsgraphql/ide/editor Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 46
46
import com .intellij .util .Consumer ;
47
47
import com .intellij .util .ExceptionUtil ;
48
48
import graphql .GraphQLException ;
49
+ import graphql .Scalars ;
49
50
import graphql .introspection .IntrospectionQuery ;
50
51
import graphql .language .*;
51
52
import graphql .schema .Coercing ;
66
67
import java .util .*;
67
68
68
69
import static com .intellij .lang .jsgraphql .v1 .ide .project .JSGraphQLLanguageUIProjectService .setHeadersFromOptions ;
70
+ import static graphql .schema .idl .ScalarInfo .STANDARD_SCALARS ;
69
71
70
72
public class GraphQLIntrospectionHelper {
71
73
@@ -81,6 +83,16 @@ public GraphQLIntrospectionHelper(Project project) {
81
83
if (project != null ) {
82
84
project .getMessageBus ().connect ().subscribe (GraphQLConfigManager .TOPIC , () -> latestIntrospection = null );
83
85
}
86
+
87
+ // remove the non-spec "graphql-java" standard scalars since we're building a registry based on the actual types present in introspection results
88
+ STANDARD_SCALARS .remove (Scalars .GraphQLBigDecimal );
89
+ STANDARD_SCALARS .remove (Scalars .GraphQLBigInteger );
90
+ STANDARD_SCALARS .remove (Scalars .GraphQLByte );
91
+ STANDARD_SCALARS .remove (Scalars .GraphQLChar );
92
+ STANDARD_SCALARS .remove (Scalars .GraphQLShort );
93
+ STANDARD_SCALARS .remove (Scalars .GraphQLLong );
94
+
95
+
84
96
}
85
97
86
98
public void performIntrospectionQueryAndUpdateSchemaPathFile (Project project , GraphQLConfigEndpoint endpoint ) {
You can’t perform that action at this time.
0 commit comments