5 ms·
A GraphQL schema is a contract though. And the REST API can still get hammered by the client - they could do an N + 1 query on their side. With GraphQL at leas
by fire_lake 2y ago
A GraphQL schema is a contract though.
And the REST API can still get hammered by the client - they could do an N + 1 query on their side. With GraphQL at least you can optimize this without adding a new endpoint.
- dudeinjapan 2y agoYes, GraphQL is a "contract" in the sense that a blank check is also a "contract".
- arcticfox 2y agoYou can whitelist queries in most systems though. In development mode allow them to run whatever query, and then lock it in to the whitelist for production. If that type of control is necessary.