Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leebyron
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
leebyron
4y ago
The site is nearly all excerpts including the section with “practical advice” - those ten suggestions are nearly verbatim from the book author from the last chapter
2.
▲
by
leebyron
4y ago
I noticed a fair amount of complaints about this in the thread, so am sorry for the poor experience. In an attempt for simplicity I used a simple <input type=date> field which means it uses your OS or browser’s native date picker. As
3.
▲
by
leebyron
4y ago
Site creator here! Thanks to all who spent some time reading and scrolling through. I’m happy to see such great discussion here, and gives me some confidence the excerpts pulled were the right ones to get the core ideas across.
4.
▲
by
leebyron
9y ago
Great question. It applies to the variant of the spec as it exists today when the license was applied. Currently found at http://facebook.github.io/graphql/draft/ GraphQL's reference implementation (GraphQL.j
5.
▲
by
leebyron
9y ago
Whoa, awesome write up! This is a pretty good distillation of some differences, but I just wanted to reiterate that I'm more excited about the similarities. Having options for what tools to use along with GraphQL is a great thing, and
6.
▲
by
leebyron
9y ago
Hi, Lee from the GraphQL/Relay team. To clarify a bit: we've removed fields from and changed our database schema repeatedly over the years. In fact we've migrated between entire database technologies multiple times over. What
7.
▲
by
leebyron
9y ago
Hi, Lee from the GraphQL/Relay team here You're not off base at all! It's very similar to that. I think it's important to extract what was good and bad about this old website pattern. The good is that within a single PHP
8.
▲
by
leebyron
9y ago
Hi, I'm Lee from the GraphQL/Relay team This technique of persisting the queries (and fragments) to the server at build time predates Relay - we've been using it on our iOS and Android apps since 2013. At build time these cli
9.
▲
by
leebyron
9y ago
Hi, I'm Lee from the GraphQL/Relay team 1. Reactiflux Q&A is a great idea, perhaps someone who organizes that can help set that up. 2. We're a pretty small team and our primary focus is building great software for Faceboo
10.
▲
by
leebyron
9y ago
There are many great libraries for backends available in many different languages. Some resources to find one: http://graphql.org/code/ https://github.com/chentsulin/awesome-graphql
11.
▲
by
leebyron
10y ago
Awesome way to leverage the schema definition files to set up a super fast server. I see this being really useful for quick prototyping or for hackathons.
12.
▲
by
leebyron
10y ago
That theory is Facebook's practice. Four years later and we're on GraphQL API version 1. We add things which is safe, deprecate fields which we want to remove, and delete when hit rates drop to 0. Granted, our clients are all Face
13.
▲
by
leebyron
10y ago
Hey, author of Immutable.js here, You're definitely right to point out that Immutable.js is really not always what you want for small values that change all the time. Immutable.js collections are best used for just that: collections. I
14.
▲
by
leebyron
11y ago
GraphQL is designed for exactly this use case
15.
▲
by
leebyron
11y ago
Only if each field required loading a new row, and even then batching can be used to turn this back into one query. eg: { firstName, lastName } doesn't need to load new rows but { mother { name }, father { name } } does need to load ne
16.
▲
by
leebyron
11y ago
React and Relay are used to do this.
17.
▲
by
leebyron
11y ago
The GraphQL language syntax is useful because it naturally expresses more patterns than JSON can. However GraphQL is eventually parsed into an AST which is represented as JSON, it's always possible to write that JSON directly. Ultimate
18.
▲
by
leebyron
11y ago
In practice, it's actually pretty rare for a GraphQL schema (exposed to clients) to be identical to a database schema which often has admin-only columns or database-specific idiosyncrasies like SQL join tables that you would opt to exp
19.
▲
by
leebyron
11y ago
The libgraphqlparser project only provides C bindings for a GraphQL language parser but not an query runner or validator which often have differing APIs to feel natural in each language. Sangria implements query running as well.
20.
▲
by
leebyron
11y ago
Hey, original author here. The moral obligation is real, and I personally feel quite strongly about it and I know most of my coworkers feel the same. Morality is relevant because it's a human feeling. It's easy to forget that even
21.
▲
by
leebyron
11y ago
New link: https://www.youtube.com/watch?v=WQLzZf34FJ8
22.
▲
by
leebyron
11y ago
They are attempting to solve similar problems: describing data needs on a client in a way that integrates well with how the data is used, and fulfilling those requirements efficiently. Falcor uses some different primitives to accomplish the
23.
▲
by
leebyron
11y ago
This is a great sum-up of a point I often find myself making a lot when explaining GraphQL. GraphQL is only capable of doing exactly what the server-side developer lets it. Order-by is a really great example. We can sort by only the things
24.
▲
by
leebyron
11y ago
Perhaps that code is a bit misleading. The schema itself is defined and provided by the server. The idea being that a server would build up it's type definitions, and then call into graphql's executor providing both the schema the
25.
▲
by
leebyron
11y ago
Correct. SQL auto increment keys plus test accounts resulted in Zuck being 4.
26.
▲
by
leebyron
11y ago
GraphQL is definitely designed to be written by developers, not by tools. We have a feature called query variables that provides the same strong typing to input values for queries that need to fetch different data dynamically.
27.
▲
by
leebyron
11y ago
Relay is one specific implementation of the Flux pattern. Flux is a generalized pattern and there are a number of libraries out there which implement their own flavor of Flux. Relay is one of those libraries implementing the Flux pattern wh
28.
▲
by
leebyron
12y ago
In production, no. In a development environment yes. AFAIK, there is no exposed API in the browser to describe the size of the heap. However, you can expose hooks to get this information in a v8 or node instance; snap heap size, run tests,
29.
▲
by
leebyron
12y ago
This is pretty unfortunate. At Facebook we use Object.freeze in a number of places to express POJSO immutability. A technique we've used to deal with the performance hit is to make most of these Object.freeze calls a no-op in a product
30.
▲
by
leebyron
12y ago
I've never tried this myself, but anything is possible. If you get this working, and want to write a blog post about it, let me know!
More ›