Skip to content

FieldVisibilitySchemaTransformation doesn't take union members into account #4185

@dondonz

Description

@dondonz

Found an interesting bug today

The FieldVisibilitySchemaTransformation eagerly deletes types that can no longer be accessed after a field is removed. This doesn't check for references from unions though, so it's possible to end up with an illegal schema where a union type has a union member that doesn't exist anymore.

I'll put up a proper test case to explain this better

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