Earlier quoted context omitted.
Maybe they want to be, to some extent, serialization-format independent?
That's correct. See https://facebook.github.io/graphql/#sec-Serialization-Format . > GraphQL does not require a specific serialization format. However, clients should use a serialization format that supports the major primitives in the GraphQL response. JSON is preferred, but not required.
Intro to Graph APIs
11–20 of 27 posts
Re: Intro to Graph APIs
#12GraphQL is an incremental improvement over REST. The next big thing will be REST over WebSockets with single-field granularity and real-time subscriptions for field value changes.
That might look more like graphQL over websockets with realtimes updates. Somebody told me about an already-existing GraphQL with real-time push updates ready-made for integrating with the front-end framework, wish I knew the name of whatever this was, but maybe somebody will chime in. Not sure how anything is RESTful anymore once it's over websockets. The whole point of REST is it's a perfection of HTTP, and the who…
Subscriptions already exist: https://dev-blog.apollodata.com/graphql-subscriptions-in-apo...
Re: Intro to Graph APIs
#13GraphQL is an incremental improvement over REST. The next big thing will be REST over WebSockets with single-field granularity and real-time subscriptions for field value changes.
Re: Intro to Graph APIs
#14Client side developers in my current workplace always ask for huge nested objects. We're having a tough time regarding performance as responses are sometimes 6-7 levels of nested objects.
That means a ton of database queries. How does everybody else manage this?
Re: Intro to Graph APIs
#15I'm really interested to know how server side API's internally handle overreaching problems and performance. Client side developers in my current workplace always ask for huge nested objects. We're having a tough time regarding performance as responses are sometimes 6-7 levels of nested objects. That means a ton of database queries. How does everybody else manage this?
Re: Intro to Graph APIs
#16I'm wondering if Microsoft is regretting it's decision to name it's overarching, pretty much bog standard REST API as "Graph API"
[1] eg. http://ogp.me/
Re: Intro to Graph APIs
#17I'm wondering if Microsoft is regretting it's decision to name it's overarching, pretty much bog standard REST API as "Graph API"
Re: Intro to Graph APIs
#18I'm really interested to know how server side API's internally handle overreaching problems and performance. Client side developers in my current workplace always ask for huge nested objects. We're having a tough time regarding performance as responses are sometimes 6-7 levels of nested objects. That means a ton of database queries. How does everybody else manage this?
Re: Intro to Graph APIs
#19Why doesn't GraphQL just define semantics over what is JSON syntactically so existing tools and parsers are sufficient? It's already so close to JSON, why use parens and strings containing emedded JSON? E.g., instead of: { "query": "repository(owner:\"zapier\", name:\"transformer\") { id description }" } use something like: { "query": {target: "repository", owner:"zapier", name:"transformer", [ "id", "description" ]}…
Re: Intro to Graph APIs
#20Earlier quoted context omitted.
That might look more like graphQL over websockets with realtimes updates. Somebody told me about an already-existing GraphQL with real-time push updates ready-made for integrating with the front-end framework, wish I knew the name of whatever this was, but maybe somebody will chime in. Not sure how anything is RESTful anymore once it's over websockets. The whole point of REST is it's a perfection of HTTP, and the who…
One problem with GraphQL is that there can some overlap between the results of different queries so it can be wasteful. Also access control is more difficult because a GraphQL query might reference multiple different data types which have different access control rules (a user may only be allowed to see part of the query result) - So it makes access control a lot more complicated.