Skip to content

Commit

Permalink
feat: why not pass args along too
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Oct 23, 2020
1 parent f721238 commit 9d1c3c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export interface ServerOptions {
onOperation?: (
ctx: Context,
message: SubscribeMessage,
args: ExecutionArgs,
result: OperationResult,
) => Promise<OperationResult | void> | OperationResult | void;
/**
Expand Down Expand Up @@ -554,6 +555,7 @@ export function createServer(
const maybeResult = await onOperation(
ctx,
message,
execArgs,
operationResult,
);
if (maybeResult) {
Expand Down

0 comments on commit 9d1c3c0

Please sign in to comment.