Skip to content

Commit 5e9054c

Browse files
Update UniqueDirectivesPerLocation import (#3741)
This update is in response to the below referenced PRs. The `UniqueDirectivesPerLocationRule` has been exported at the root since forever (at least 0.12.0. graphql/graphql-js#2400 graphql/graphql-js#2413
1 parent 1bddb63 commit 5e9054c

File tree

1 file changed

+3
-3
lines changed
  • packages/apollo-federation/src/composition

1 file changed

+3
-3
lines changed

packages/apollo-federation/src/composition/rules.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { specifiedSDLRules } from 'graphql/validation/specifiedRules';
1212
*/
1313

1414
import {
15-
UniqueDirectivesPerLocation as UniqueDirectivesPerLocationFromGraphqlJs,
16-
} from 'graphql/validation/rules/UniqueDirectivesPerLocation';
15+
UniqueDirectivesPerLocationRule as UniqueDirectivesPerLocationRuleFromGraphqlJs,
16+
} from 'graphql';
1717
import {
1818
UniqueTypeNames as UniqueTypeNamesFromGraphqlJs,
1919
} from 'graphql/validation/rules/UniqueTypeNames';
@@ -41,7 +41,7 @@ import {
4141
} from './validate/sdl';
4242

4343
const omit = [
44-
UniqueDirectivesPerLocationFromGraphqlJs,
44+
UniqueDirectivesPerLocationRuleFromGraphqlJs,
4545
UniqueTypeNamesFromGraphqlJs,
4646
UniqueEnumValueNamesFromGraphqlJs,
4747
PossibleTypeExtensionsFromGraphqlJs,

0 commit comments

Comments
 (0)