Skip to content

validate throws a TypeError: Cannot read properties of undefined (reading 'type') #4443

Open
@matthew-wozniczka

Description

@matthew-wozniczka

const isNullableVariable = definition.type.kind !== Kind.NON_NULL_TYPE;

I've hit a TypeError being thrown from this line when testing against some invalid queries.

I'm not using this library directly, but instead via https://github.com/apollographql/apollo-server (4.12.2), so maybe I should report it there, let me know if so. It's not really easy to provide a reproducer at this level either, so maybe that's another signal...

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions