We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9160f7d commit c6be316Copy full SHA for c6be316
content/graphql/guards-interceptors.md
@@ -100,7 +100,7 @@ GraphQLModule.forRoot({
100
101
```typescript
102
export function isResolvingGraphQLField(context: ExecutionContext): boolean {
103
- if (context.getType<GqlContextType>().toString() === 'graphql') {
+ if (context.getType<GqlContextType>() === 'graphql') {
104
const gqlContext = GqlExecutionContext.create(context);
105
const info = gqlContext.getInfo();
106
const parentType = info.parentType.name;
0 commit comments