I can’t seem to get my `graphql subscriptions` to ...
# prisma-whats-new
b
I can’t seem to get my
graphql subscriptions
to work. I believe I set it up correctly, but it keep returning null. Here’s my setup
Copy code
const Subscription = new GraphQLObjectType({
    name: 'RootSubscription',
    description: 'All FathCircle Subscriptions',
    fields: {
        userCreated: {
            type: UserLoginType,
            subscribe: withFilter(
                () => pubsub.asyncIterator(SUB.USER_CREATED, SUB.USER_LOGGED_IN),
                (payload, args) => {
                    console.log(payload);
                    return payload.userCreated.id === args.id;
                }
            ),
            resolve: st => {
                console.log(st);
                console.log('Nothing shows!!!');
            }
        }})