Software Alternatives & Reviews

Migrating Netflix to GraphQL Safely

GraphiQL Hasura
  1. An in-browser IDE for exploring GraphQL

    #Databases #MySQL Tools #Database Management 23 social mentions

  2. 2
    Hasura is an open platform to build scalable app backends, offering a built-in database, search, user-management and more.
    Pricing:
    • Open Source
    Postgraphile https://postgraphile.org/ Hasura https://hasura.io/ Examples of "batteries included" GraphQL. Combine with a type generator for the language of your choice (eg. https://the-guild.dev/graphql/codegen), and you've got your client interface to avoid any type errors. Each comes with a GraphiQL UI for access out of the box as well. It's more turnkey than any REST solutions I've seen, that's for sure. For different environments, it's quite possible (even normal?) to generate your types and GraphQL schema ahead of time, before CI/CD build of the UI to catch errors early at compile time. Now add in SvelteKit with KitQL (https://www.kitql.dev/), and you've got a very simple, flexible, and efficient end-to-end solution. As for errors, because each resolver can generate errors and not all errors are considered fatal, the errors must necessarily be embedded with the response and treated by the network client as they see fit. It's definitely different from REST, but not inferior. It's a different set of tradeoffs. When using a schema generator like Postgraphile or Hasura, it's unlikely you'd get errors in practice. The endpoints are basically guaranteed to resolve, and the generated SQL is nigh certain to execute correctly. If you get one error, chances are the whole endpoint is down due to a database connectivity problem. (That has been my experience at any rate.) Don't take my word for it. Bring up a Postgres database, put some data in, and point one of these tools at it. I think you'll be pleasantly surprised. You may still prefer REST (or gRPC), but I think we can both agree that "batteries included" is definitely an option with GraphQL.

    #GraphQL #Realtime Backend / API #API Tools 117 social mentions

Discuss: Migrating Netflix to GraphQL Safely

Log in or Post with