Skip to content

Commit ccf1004

Browse files
authored
Pass TContext type argument to ApolloServer (#45)
1 parent d465cf6 commit ccf1004

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/bright-elephants-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@as-integrations/hapi': patch
3+
---
4+
5+
Pass TContext to ApolloServer in HapiApolloPluginOptions

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface HapiContextFunctionArgument {
2222
}
2323

2424
export interface HapiApolloPluginOptions<TContext extends BaseContext> {
25-
apolloServer: ApolloServer;
25+
apolloServer: ApolloServer<TContext>;
2626
context?: ContextFunction<[HapiContextFunctionArgument], TContext>;
2727
path?: string;
2828
getRoute?: {

0 commit comments

Comments
 (0)