4 ms·
I've looked a bit through the GraohQL syntax. While it is an immense improvement over plain Rest, I dislike the abuse of JSON as a query language. I think it wo
by slaymaker1907 9y ago
I've looked a bit through the GraohQL syntax. While it is an immense improvement over plain Rest, I dislike the abuse of JSON as a query language. I think it would be better if it were a true DSL like SQL or some sort of Lisp.
Instead of allPersons, I think it would be cleaner and easier to understand as
(all Person)
Which makes the generic nature of "all" explicit.
- djmashko2 9y agoThe thing is that the "all" is actually _not_ generic in this case. The GraphQL server implementor has to specify a field called that specifically.