Skip to content

Commit

Permalink
chore(benchmark): use new execute/subscribe for legacy protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Jun 9, 2022
1 parent 92dfae3 commit 77682cd
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions benchmark/servers/legacy_ws7.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,8 @@ const server = createServer((_req, res) => {
SubscriptionServer.create(
{
schema,
execute: (
schema,
document,
rootValue,
contextValue,
variableValues,
operationName,
) =>
execute({
schema,
document,
rootValue,
contextValue,
variableValues,
operationName,
}),
subscribe: (
schema,
document,
rootValue,
contextValue,
variableValues,
operationName,
) =>
subscribe({
schema,
document,
rootValue,
contextValue,
variableValues,
operationName,
}),
execute,
subscribe,
},
{ server, path: '/graphql' },
);
Expand Down

0 comments on commit 77682cd

Please sign in to comment.