Skip to content

Commit

Permalink
fix(): override get type method in gql execution context
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 21, 2020
1 parent 0b78db7 commit f80f287
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/services/gql-execution-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export class GqlExecutionContext extends ExecutionContextHost
return gqlContext;
}

getType<TContext extends string = GqlContextType>(): TContext {
return super.getType();
}

getRoot<T = any>(): T {
return this.getArgByIndex(0);
}
Expand Down

0 comments on commit f80f287

Please sign in to comment.