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 e734b53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { RemoteGraphQLDataSource } from '@apollo/gateway';
{
provide: GRAPHQL_GATEWAY_BUILD_SERVICE,
useValue: ({ name, url }) => {
console.log('BuildService: %s', name);
return new RemoteGraphQLDataSource({ url });
},
},
Expand Down
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 e734b53

Please sign in to comment.