logoalt Hacker News

wrsyesterday at 9:14 PM3 repliesview on HN

It doesn’t actually require that second part. Every time I’ve used it in a production system, we had an approved list of query shapes that were accepted. If the client wanted to use a new kind of query, it was performance tested and sometimes needed to be optimized before approval for use.

If you open it up for any possible query, then give that to uncontrolled clients, it’s a recipe for disaster.


Replies

kaoDyesterday at 9:20 PM

Oh, we have that too! But we call it HTTP endpoints.

show 2 replies
awesome_dudeyesterday at 9:25 PM

Without wishing to take part in a pile on - I am wondering why you're using graphql if you are kneecapping it and restricting it to set queries.

show 3 replies