Lee Richmond (@richmolj) header
Lee Richmond (@richmolj) profile picture

Principal Member of Technical Staff at Salesforce. Creator of Graphiti, a RESTful alternative to GraphQL https://xitter.gq/t.co/dA6tINOA0S

Washington, DC
Joined October 2009
Photo by Lee Richmond (@richmolj)Photo by Lee Richmond (@richmolj)Photo by Lee Richmond (@richmolj)Photo by Lee Richmond (@richmolj)Photo by Lee Richmond (@richmolj)
Ultimately Hotwire doesn't address my needs - not just a productive dev experience, but a productive dev experience *that also gives an API for free*. respond_to doesn't cut it, so you end up with handrolling GraphQL, and the same unproductive experience...on the server.
1
Which is why Graphiti exists! Use with Hotwire as a datastore-agnostic ORM alongside an API, or go the SPA route! Either way, a robust API out-of-the-box is tremendously valuable.
1
1
Talking Graphiti on the Ruby Rogues podcast this week! devchat.tv/ruby-rogues/rr-46…
1
Replying to @wycats
@wycats I think you should do this with a JSON:API backend 🤘😁
Replying to @wycats
I still think it would be interesting if you (in particular) worked on a handful of screencast courses demonstrating why you use and love Ember and how it’s a viable and intelligent choice for web projects.
Replying to @dunglas
@dunglas ahoy and thank you ♥️! Absolutely. I love that Graphiti/Vulcain integration would be pretty seamless and powerful, a testament to what happens when you build upon existing HTTP/REST principles.
Replying to @richmolj
@richmolj hi! Nice work with Graphiti! It looks very similar to @ApiPlatform (same idea, but PHP). It could be awesome if both project can expose compatible APIs (it would allow to use client-side tools with both). We promote @jsonld/@HydraCG but we also support @jsonapi. WDYT?
1
1
1
The greatest trick the devil ever pulled was convincing devs we needed to throw away REST and the HTTP spec in order to solve data over-fetching.
6
30
2
147
This is a fantastic and thoughtful post. I'd like to add: folks who know GraphQL are familiar with REST, but the reverse isn't true. If you want an API familiar to the maximum number of developers, you want REST.
New Post!🤔We don't see many public #GraphQL APIs in the wild. Internally, we see a lot of companies adopting it with success. Why is that? 🔍 Some thoughts on why GraphQL is both an awesome and tricky choice for public APIs: medium.com/@__xuorig__/why-w…
2
This is one reason Graphiti keeps RESTful conventions: you still get granular client-specified queries with no overfetching; you can also just curl /posts.json as you normally would. We solve the same problems as GraphQL, in a way that allows for progressive enhancement.
1
So: what's a good API and why is it not GraphQL? A good API thinks in Objects, but GraphQL thinks in Fields.
1
Let's agree on this: we want an API that exposes a graph of the domain. Clients specify which nodes in the graph they want, as well as the fields within those nodes. There's a typed schema for introspection and tooling.
1
Hello #railsconf! If anyone is interested in GraphQL alternatives, or API design in general, let's talk! graphiti.dev
1
Replying to @jasonkarns
@jasonkarns we met over Skype last year - thought you'd find our progress interesting! xitter.gq/wycats/status/11207320… youtube.com/watch?v=_QqXjZDz…
GraphQL taught us that making requests for resources one at a time is a crappy way to build web apps. But URL links between resources are still a great way to incrementally fetch stuff as you need it.
1
Replying to @drakedowsett
@drakedowsett im at railsconf and would love to talk jsonapi
1
1
Sorry null, I voted for null in Iconic T-shirt Tourney brackets.upvoteapp.com/iconi… #tshirt_tourney
rerSorry null, I voted for null in Iconic T-shirt Tourney brackets.upvoteapp.com/iconi… #tshirt_tourney
Sorry null, I voted for null in Iconic T-shirt Tourney brackets.upvoteapp.com/iconi… #tshirt_tourney
Sorry null, I voted for asdf in Iconic T-shirt Tourney http://upvoteapp.local:8000/#!/brackets/hannah-the-banana #tshirt_tourney
Sorry null, I voted for null in hbhasdfdf http://upvoteapp.local:8000/#!/brackets/hbh-1 #upvt