Live data from Hacker News

GraphQL Working Draft

facebook.github.io

51–60 of 71 posts

Re: GraphQL Working Draft

#51
post #21

Lol - the code example seems to imply that Zuckerburg's user id is 4.

As a ruby programmer, my gut reaction was that this had something to do with bugs caused by the object id of `nil` being 4. But of course that's not the case :)

You need to upgrade your Ruby version. The object id of `nil` is 8 these days :)

Re: GraphQL Working Draft

#53

Why not have the query in JSON? Now you need a new parser. EDIT: Thanks for all the replies, all of them very good points, and clearly show that JSON is not the most elegant option for a complex DSL.

I believe Netflix's Falcor, which seems very similar to Relay, uses JSON.

Where in the world is Falcor? We keep hearing about it, we saw the presentation, but this is all we've got and it's nothing: https://github.com/michaelbpaulson/Falcor

Re: GraphQL Working Draft

#54
post #42
post #8

Lee Byron is talking about it at React Europe right now, here's the live stream (which supports play back): https://www.youtube.com/watch?v=UclvvqNtNNo

That link says "This video is private".

I believe the event ended so they marked the stream as private.

Re: GraphQL Working Draft

#56
post #53

Earlier quoted context omitted.

I believe Netflix's Falcor, which seems very similar to Relay, uses JSON.

Where in the world is Falcor? We keep hearing about it, we saw the presentation, but this is all we've got and it's nothing: https://github.com/michaelbpaulson/Falcor

I had made a comment on twitter that the ref: concept basically throws json off the indecidability cliff in terms of parsing. They opened an issue for it apparently, but you can see the graphql rfc has specific anti-cycle checks, which is super important.

Re: GraphQL Working Draft

#57
post #51

Earlier quoted context omitted.

As a ruby programmer, my gut reaction was that this had something to do with bugs caused by the object id of `nil` being 4. But of course that's not the case :)

You need to upgrade your Ruby version. The object id of `nil` is 8 these days :)

Ha, well they also got rid of `id` on nil altogether, so it stopped being a common bug. (I didn't know that its object id is actually 8 now though, so thanks for the useless-knowledge-nugget.)

Re: GraphQL Working Draft

#60
post #49

I've been looking forward to this! One question; it appears as though the types and schema are passed with every request (eg https://github.com/graphql/graphql-js/blob/master/src/graphq... ) -- I assume part of the reason for this is versioning/sharing the schema, but is it always external, does the server ever know the schema a priori -- what's the thinking around this design decision? (It's a plausible idea! I'm ju…

It's passed to that function in the reference implementation, but a server would probably create a helper function that runs a query for a particular schema. For example, you can just pass a query to Facebook's GraphQL endpoint (without specifying a schema), and it will run the query on the Facebook schema.
Post reply on HN