1
1
import {
2
2
buildASTSchema ,
3
3
DocumentNode ,
4
- GraphQLError ,
5
4
GraphQLSchema ,
6
5
isEnumType ,
7
6
isIntrospectionType ,
@@ -28,6 +27,7 @@ import {
28
27
// of differentiating between features that require runtime support and those
29
28
// that can be silently ignored, without enumerating features explicitly.
30
29
export const supportedFeatures : ParsedFeatureURL [ ] = [
30
+ 'https://specs.apollo.dev/core/v0.1' ,
31
31
'https://specs.apollo.dev/core/v0.2' ,
32
32
'https://specs.apollo.dev/join/v0.1' ,
33
33
'https://specs.apollo.dev/inaccessible/v0.1' ,
@@ -49,30 +49,6 @@ export function buildComposedSchema(document: DocumentNode): GraphQLSchema {
49
49
// spec here, and use the collected features to validate feature
50
50
// versions and handle renames.
51
51
52
- const coreDirectivesArgs = getArgumentValuesForRepeatableDirective (
53
- coreDirective ,
54
- schema . astNode ! ,
55
- ) ;
56
-
57
- for ( const coreDirectiveArgs of coreDirectivesArgs ) {
58
- const feature = parseFeatureURL ( coreDirectiveArgs [ 'feature' ] ) ;
59
-
60
- // TODO: Replace strict feature matching with version satisfaction from the
61
- // Core Schema spec.
62
- if (
63
- ! supportedFeatures . some (
64
- ( supportedFeature ) =>
65
- supportedFeature . identity === feature . identity &&
66
- supportedFeature . version === feature . version ,
67
- )
68
- ) {
69
- throw new GraphQLError (
70
- `Unsupported core schema feature and/or version: ${ feature } ` ,
71
- schema . astNode ! ,
72
- ) ;
73
- }
74
- }
75
-
76
52
const joinName = 'join' ;
77
53
78
54
function getJoinDirective ( name : string ) {
0 commit comments