Getting req.headers.authorization in Mv3?

I changed it to this:

import { RedisPubSub } from "graphql-redis-subscriptions";
import Redis from 'ioredis';

const options = {
    host: 'localhost',
    port: 6379,
    retryStrategy: times => {
        // reconnect after
        return Math.min(times * 50, 2000);
    }
};

const pubsub = new RedisPubSub({
    publisher: new Redis(options),
    subscriber: new Redis(options)
});

…and now I’m getting:

connect ECONNREFUSED 127.0.0.1:6379

…which is the same error I got with:

export const pubsub = new RedisPubSub({
});

:thinking:

Hmmmm… do I need to be running an instance of Redis on my server? That would make sense.

May I ask, where does operation come from here? It’s showing as “undefined” when I run the code.

** Update**

I found the answer to that question.