Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

fix(fastify-template): fix for subscriptions in fastify template #2248

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions templates/ts-fastify-mongodb-backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function start() {

app.register((mercurius as any), {
schema,
resolvers,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think resolvers should include noteResolvers as in

graphiql: true,
context: contextCreator,
subscription: true
Expand Down