Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> the Frontend is allowed to send any possible query to the Backend

It's really not, it's not exposing your whole DB or allowing random SQL queries.

> It is far better for the Backend to provide the Frontend a contract

GraphQL does this - it's just called the GraphQL "schema". It's not your entire database schema.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: