Skip to content

Type.someField should provide "deprecationReason" instead of "isDeprecated" #1313

Closed
@eliw00d

Description

@eliw00d

So, I am trying to reuse some fields in other objects by spreading them like so:

fields: {
    ...Type.getFields()
}

Where Type has the fields I want to reuse.

However, I get the following error:

Error: Type.someField should provide "deprecationReason" instead of "isDeprecated".

None of the fields have isDeprecated in my code, but I'm guessing those get added later internally. If I add isDeprecated to one of the fields I get the same error.

Is isDeprecated no longer used or am I not using .getFields correctly?

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