News for hackers. Stuff that matters.
Re:Why use GraphQL, good and bad reasons by baddox on Friday August 24, 2018 @07:58PM (#17838708)
I don't know, I've seen lots of REST APIs that have similar levels of query configurability (albeit without the predictable syntax of GraphQL). It's certainly not uncommon for REST APIs to support params for sorting, filtering, and including related entities (i.e. joining), at which point you could just as easily open yourself up to dangerous queries as you could with GraphQL.
Re:Why use GraphQL, good and bad reasons by kodablah on Friday August 24, 2018 @08:23PM (#17838803)
Most definitely and I allude to them in my initial post because it's basically the same problem. Can't get rid of all parameters in all cases of course. Of the common configurability options I see in REST APIs, the ones that affect queries in the most complicated way is the customizable inclusion of extra relational properties.