News for hackers. Stuff that matters.
Re:GraphQL: A Tutorial for Getting Started (Hello World) by robzhu on Tuesday March 21, 2017 @08:32PM (#13927590)
They're similar with a few key differences. First, in OData, the URI is still a big part of the API, whereas the URI is unimportant in GraphQL, which allows GraphQL clients to simplify routing logic. Second, GraphQL lets you specify arguments on any field within the selection set. OData's parameters are far less flexible. Finally, and less objectively, I feel OData's query filters on collections is too burdensome and, in practice, ends up tightly coupled to a SQL-like backend.
Re:GraphQL: A Tutorial for Getting Started (Hello World) by seanp2k2 on Tuesday March 21, 2017 @11:01PM (#13928183)
Simplify routing logic unless you want to route based on URL, which e.g. AWS ALBs or nginx or haproxy can do, but they don't understand GraphQL. What's the alternative?
Re:GraphQL: A Tutorial for Getting Started (Hello World) by robzhu on Tuesday March 21, 2017 @11:54PM (#13928345)
I'm not sure I understand your use case. Can you give me an example of the problem you're dealing with?