Skip to content

Commit

Permalink
Update UniqueDirectivesPerLocation import (#3741)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
trevor-scheer committed Jan 31, 2020
1 parent 1bddb63 commit 5e9054c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/apollo-federation/src/composition/rules.ts
Expand Up @@ -12,8 +12,8 @@ import { specifiedSDLRules } from 'graphql/validation/specifiedRules';
*/

import {
UniqueDirectivesPerLocation as UniqueDirectivesPerLocationFromGraphqlJs,
} from 'graphql/validation/rules/UniqueDirectivesPerLocation';
UniqueDirectivesPerLocationRule as UniqueDirectivesPerLocationRuleFromGraphqlJs,
} from 'graphql';
import {
UniqueTypeNames as UniqueTypeNamesFromGraphqlJs,
} from 'graphql/validation/rules/UniqueTypeNames';
Expand Down Expand Up @@ -41,7 +41,7 @@ import {
} from './validate/sdl';

const omit = [
UniqueDirectivesPerLocationFromGraphqlJs,
UniqueDirectivesPerLocationRuleFromGraphqlJs,
UniqueTypeNamesFromGraphqlJs,
UniqueEnumValueNamesFromGraphqlJs,
PossibleTypeExtensionsFromGraphqlJs,
Expand Down

0 comments on commit 5e9054c

Please sign in to comment.