Skip to content

@deprecated directive on input #204

Closed
@rogchap

Description

@rogchap

Since 498fe39 we can add @deprecated to types like so:

type User {
  name: String!
  age: int @deprecated(reason: "Use `dob` instead")
  dob: Date!
}

However the @deprecated directive throws an error on input:

input UserInput {
  name: String!
  age: int! = 0 @deprecated(reason: "Use `dob` instead")
  dob: Date!
}
panic: graphql: syntax error: unexpected "@", expecting Ident

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