Skip to content

Test repository for graphql subscription with mercurius (fastify)

Notifications You must be signed in to change notification settings

AlessioScarfone/mercurius-redis-subscription

Repository files navigation

Mercurius + Subscription + Redis sample

Testing repo for: Mercurius Issue

Usage

START SERVER

npm run up #start redis
npm run start:mqemitter or npm run start:redis-sub  #start server with mqemitter-redis or graphql-redis-subscriptions

SIMULATE REDIS DOWN

npm run down #stop redis

Graphql Query:

subscription VoteAdded {
    voteAdded(voteId: "1") {
        id
        title
        ayes
        noes
    }
}
mutation VoteNo {
    voteNo(voteId: "1") {
        id
        title
        ayes
        noes
    }
}

About

Test repository for graphql subscription with mercurius (fastify)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published