Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streamline imports #1940

Merged
merged 1 commit into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/wrap/src/transforms/FilterObjectFieldDirectives.ts
@@ -1,5 +1,7 @@
import { GraphQLSchema, GraphQLFieldConfig } from 'graphql';

import { Transform, getArgumentValues } from '@graphql-tools/utils';

import TransformObjectFields from './TransformObjectFields';

export default class FilterObjectFieldDirectives implements Transform {
Expand Down
@@ -1,6 +1,9 @@
import { GraphQLSchema, GraphQLFieldConfig } from 'graphql';

import { Transform, valueMatchesCriteria } from '@graphql-tools/utils';
import { FilterObjectFieldDirectives, TransformObjectFields } from '@graphql-tools/wrap';

import FilterObjectFieldDirectives from './FilterObjectFieldDirectives';
import TransformObjectFields from './TransformObjectFields';

export default class RemoveObjectFieldDeprecations implements Transform {
private readonly removeDirectives: FilterObjectFieldDirectives;
Expand Down
4 changes: 3 additions & 1 deletion packages/wrap/src/transforms/RemoveObjectFieldDirectives.ts
@@ -1,6 +1,8 @@
import { GraphQLSchema } from 'graphql';

import { Transform, valueMatchesCriteria } from '@graphql-tools/utils';
import { FilterObjectFieldDirectives } from '@graphql-tools/wrap';

import FilterObjectFieldDirectives from './FilterObjectFieldDirectives';

export default class RemoveObjectFieldDirectives implements Transform {
private readonly transformer: FilterObjectFieldDirectives;
Expand Down
@@ -1,6 +1,8 @@
import { GraphQLSchema, GraphQLFieldConfig } from 'graphql';

import { Transform, valueMatchesCriteria } from '@graphql-tools/utils';
import { FilterObjectFields } from '@graphql-tools/wrap';

import FilterObjectFields from './FilterObjectFields';

export default class RemoveObjectFieldsWithDeprecation implements Transform {
private readonly transformer: FilterObjectFields;
Expand Down
@@ -1,6 +1,8 @@
import { GraphQLSchema, GraphQLFieldConfig } from 'graphql';

import { Transform, getDirectives, valueMatchesCriteria } from '@graphql-tools/utils';
import { FilterObjectFields } from '@graphql-tools/wrap';

import FilterObjectFields from './FilterObjectFields';

export default class RemoveObjectFieldsWithDirective implements Transform {
private readonly directiveName: string | RegExp;
Expand Down