Skip to content

12.1, Issue with connection always returning undefined #2

@ianvalls90

Description

@ianvalls90

This block of code here, is not working (probably due to module updates over time I guess) :

context: ({ req, connection }) => {
        if (req) {
          return { user: req['user'] };
        } else {
          console.log(connection);
        }

'connection' is always returning undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions