Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dschafer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
Show HN: A fast command-line tool for solving Queens puzzles
(github.com)
5 points
by
dschafer
1y ago
|
0 comments
2.
▲
Activatr: An R Package for Parsing and Plotting Activities
(github.com)
3 points
by
dschafer
6y ago
|
0 comments
3.
▲
by
dschafer
9y ago
We've been using GraphQL at Facebook in production for almost five years now, and it powers a huge amount of our iOS/Android app's API traffic. We also did a comprehensive revisit of the core concepts when we open sourced it
4.
▲
GraphQL: Leaving technical preview
(graphql.org)
41 points
by
dschafer
10y ago
|
2 comments
5.
▲
GraphiQL: GraphQL’s Killer App?
(medium.com)
88 points
by
dschafer
11y ago
|
16 comments
6.
▲
Subscriptions in GraphQL and Relay
(graphql.org)
13 points
by
dschafer
11y ago
|
0 comments
7.
▲
by
dschafer
11y ago
Yeah, introducing a new field and deprecating the old one seems like the best option here. The nice thing is that while this introduces new functionality, there's still only one version of the server; if you query for `homePlanet`, you
8.
▲
by
dschafer
11y ago
FB's GraphQL APIs are only used by our first-party applications; for third-party APIs (where you don't control the callers), it definitely gets trickier for the reasons you note. One option would be to do some analysis of the quer
9.
▲
by
dschafer
11y ago
When building out a GraphQL schema, the schema developer chooses which functionality to expose to the client. So rather than having the client do operations or predicates directly, the server declares what functionality is available, and mi
10.
▲
by
dschafer
11y ago
The GraphQL API acts as a layer atop application code; it assumes that the application code takes care of any access controls (since those access controls would apply to anyone querying that data, not just GraphQL). So there's nothing
11.
▲
by
dschafer
11y ago
GraphQL queries are hierarchical so that the response mirrors the structure of the query. We found that there were needs of the query (query parameters and directives, for example) that didn't feel ideally represented in JSON, which is
12.
▲
by
dschafer
11y ago
Yep, GraphQL is agnostic as to how your data is stored. For example, https://github.com/graphql/swapi-graphql/ is a GraphQL schema that is backed by the swapi.co API. The examples at https://github.com&
13.
▲
GraphQL: A data query language
(code.facebook.com)
274 points
by
dschafer
11y ago
|
80 comments
14.
▲
by
dschafer
11y ago
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 (w
15.
▲
by
dschafer
11y ago
GraphQL doesn't prescribe a particular approach to mutations; it allows the server developer to specify what mutations are available. For example, at Facebook we have a storyCreate mutation, and a friendRequestAdd mutation. Mutations a