Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Best kept secrets for 2019: GraphQL + Prisma

Best kept secrets for 2019: GraphQL + Prisma

You've spent years perfecting your REST setup just to throw it out. Now you're one of the cool people spending countless hours on your overly complex GraphQL resolvers. If you're in search for a better developer experience - Prisma might be the answer. It's a fresh data-layer to build high-performance GraphQL servers that will dominate JavaScript ecosystem in 2019. And I'll tell you why.

Domas Bitvinskas

December 13, 2018
Tweet

More Decks by Domas Bitvinskas

Other Decks in Programming

Transcript

  1. Typical GraphQL server structure Schema / TypeDefs type Query {

    posts: [Post!]! post(id: ID!): Post! } type Post { id: ID! title: String }
  2. Typical GraphQL server structure Resolvers { Query: { posts: (_,

    args) => Post.findAll(), post: (_, { id }) => Post.findOne({ where: { id } }) } }
  3. A data layer that replaces traditional ORMs in your application

    architecture. Open-source: github.com/prisma/prisma ⭐ 11.6k
  4. const resolvers = { Query: { user: (_, args) =>

    prisma.user({ id: args.id, }), },
  5. 2019 - GraphQL adoption will continue grow - Prisma will

    grow rapidly as a remedy for GraphQL mess 2019