4 ms·
My company has many backends federated together, but a monolithic, web-based frontend. It’s actually really easy to remove a field from graphql. 1. Remove all
by hamandcheese 4y ago
My company has many backends federated together, but a monolithic, web-based frontend. It’s actually really easy to remove a field from graphql.
1. Remove all uses from the frontend.
2. Deploy.
3. A day later, delete it from the schema.
If deleting it causes relay compiler errors, go back to step 1.
(The less lazy way to do it would be to actually pull some stats about how long-lived frontend bundles are)
Not being able to delete fields only really applies if you have a huge number of clients that you can’t easily force to update on a whim. Plenty of folks just have web clients.
My company doesn’t have this, but I’d love to get per-field usage stats about our schema.
- cletus 4y agoThat affirms my point: you have complete control over the front end.