Skip to content

Commit 89970f7

Browse files
Update plugins.md
1 parent 2136a7d commit 89970f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/graphql/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import {
1515

1616
@Plugin()
1717
export class LoggingPlugin implements ApolloServerPlugin {
18-
requestDidStart(): GraphQLRequestListener {
18+
async requestDidStart(): Promise<GraphQLRequestListener> {
1919
console.log('Request started');
2020
return {
21-
willSendResponse() {
21+
async willSendResponse() {
2222
console.log('Will send response');
2323
},
2424
};

0 commit comments

Comments
 (0)