Deprecated: “@id argument for get query on interface is being deprecated, it will be removed in v21.11.0, please update your query to not use that argument”
interface Person {
id: ID!
popcode: String! @id @search(by: [hash])
}
type Employee implements Person {
taxcode: String! @id @search(by: [hash])
}
type Student implements Person {
enrollment: String! @id @search(by: [hash])
}
query GetEmployee($popcode: String) {
getEmployee(popcode: $popcode) {
taxcode
}
}