I would like to know how to deprecate a field or a collection in my graphql schema.
For example a collection like this:
type Person {
name: String
age: Int
}
and I would like to remove the age field
type Person {
name: String
}
Considering that I would already have documents with the age field populated.
My guess would be to update all documents to have age
as null
and then upload a new schema (merge) without the age field in the collection. Is that the way to do it?
Or is it that once there is a field in a schema we are stuck with that field until we do a complete override? (which would replace the schema and I understand it will delete the documents)