This is a great point and one reason I am left scratching my head when considering building applications on the JAM stack.
We are working on a solution to this with WeBase [1] and I'd love to see us do an integration with Netlify here where you build with WeBase and host on Netlify (and get automatic API integration with your data models).