Skip to content

Commit

Permalink
style: cleanup unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rickdgeerling committed Oct 30, 2019
1 parent c1f0388 commit 9f85b82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
10 changes: 1 addition & 9 deletions tests/graphql-federation/posts-service/posts/posts.resolvers.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import {
Args,
Mutation,
Query,
Resolver,
ResolveReference,
Parent,
ResolveProperty,
} from '../../../../lib';
import { Query, Resolver, Parent, ResolveProperty } from '../../../../lib';
import { PostsService } from './posts.service';
import { Post } from './posts.interfaces';

Expand Down
13 changes: 2 additions & 11 deletions tests/graphql-federation/users-service/users/users.resolvers.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import {
Args,
Mutation,
Query,
Resolver,
ResolveReference,
Parent,
ResolveProperty,
} from '../../../../lib';
import { Args, Query, Resolver, ResolveReference } from '../../../../lib';
import { UsersService } from './users.service';
import { User } from './users.interfaces';

@Resolver('User')
export class UsersResolvers {
Expand All @@ -20,7 +11,7 @@ export class UsersResolvers {
}

@ResolveReference()
resolveReference(reference: any) {
resolveReference(reference: { __typename: string; id: string }) {
return this.usersService.findById(reference.id);
}
}

0 comments on commit 9f85b82

Please sign in to comment.