File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @graphql-tools/import ' : patch
3+ ---
4+
5+ add import support for federation v2.10 features
Original file line number Diff line number Diff line change @@ -393,18 +393,34 @@ function importFederatedSchemaLinks(
393393 * */
394394 if ( matchesImplementation ( federationUrl , 'v2.0' ) ) {
395395 const federationImports = [
396- '@composeDirective' ,
397396 '@extends' ,
398397 '@external' ,
399398 '@inaccessible' ,
400- '@interfaceObject' ,
401399 '@key' ,
402400 '@override' ,
403401 '@provides' ,
404402 '@requires' ,
405403 '@shareable' ,
406404 '@tag' ,
407405 'FieldSet' ,
406+ /** v2.1 */
407+ '@composeDirective' ,
408+ /** v2.3 */
409+ '@interfaceObject' ,
410+ /** v2.5 */
411+ '@authenticated' ,
412+ '@requiresScopes' ,
413+ /** v2.6 */
414+ '@policy' ,
415+ /** v2.8 */
416+ '@context' ,
417+ '@fromContext' ,
418+ /** v2.9 */
419+ '@cost' ,
420+ '@listSize' ,
421+ /** v2.10 */
422+ '@connect' ,
423+ '@source' ,
408424 ] ;
409425 for ( const i of federationImports ) {
410426 addDefinition ( resolveImportName ( federationUrl , i ) ) ;
You can’t perform that action at this time.
0 commit comments