Skip to content

Rule defined-types-are-used should detect reference loops #264

@meiamsome

Description

@meiamsome

The following schema:

type Query {
    field: Int!
}

type A {
    b: B!
}

type B {
    a: A!
}

Will currently not show any errors, despite types A and B being inaccessible types (Due to the cyclic dependencies they count as referenced)

The same is true for self-referential types:

type Query {
    field: Int!
}

type A {
    a: A!
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions