Skip to content

Commit c6be316

Browse files
committed
docs(graphql): simplify further
1 parent 9160f7d commit c6be316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/guards-interceptors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ GraphQLModule.forRoot({
100100
101101
```typescript
102102
export function isResolvingGraphQLField(context: ExecutionContext): boolean {
103-
if (context.getType<GqlContextType>().toString() === 'graphql') {
103+
if (context.getType<GqlContextType>() === 'graphql') {
104104
const gqlContext = GqlExecutionContext.create(context);
105105
const info = gqlContext.getInfo();
106106
const parentType = info.parentType.name;

0 commit comments

Comments
 (0)