GraphGL with Mercurius and Prisma, Love at First Sight

Luca Del Puppo

My photo

Luca Del Puppo

  • Full Stack Developer
  • Javascript Enthusiastic
  • Typescript Lover
  • “Youtuber”
  • “Writer”

Love sport: running, hiking

Love animals

@puppo92

Why am I speaking about that?

@puppo92

@puppo92

Rest

GraphQL

@puppo92

@puppo92

Needs

  • Easy to maintain
  • Helps developers in day by day
  • Typescript
  • Developers focus on Business and not to resolve framework problems

@puppo92

@puppo92

<a href="https://www.freepik.com/free-vector/cute-astronaut-operating-laptop-cartoon-vector-icon-illustration-science-technology-icon_10411620.htm#from_view=detail_alsolike">Image by catalyststuff</a> on Freepik

@puppo92

@puppo92

@puppo92

GraphQL implementation

  • Base on fastify
  • easy to use
  • well documentation
  • Typescript support
  • code generation
    • graphQL file to typescript definitions
    • operations to build tests

@puppo92

@puppo92

@puppo92

@puppo92

@puppo92

Database

@puppo92

@puppo92

@puppo92

Database Implementation

  • Data Modeling
  • Type-safety
  • Migrations

@puppo92

P.s. integrate by a simple fastify plugin

@puppo92

Demo

@puppo92

Conclusion

@puppo92

@puppo92

@puppo92

I'm not a salesman

This is only a possible solution

@puppo92

@puppo92

Conclusion

  • fastify & mercurius is an option to build graphQL server with node
  • Prisma helps to create a layer between your application and the database
  • They help you to focus on release features and not waste time on strange mistakes
  • They love Typescript (like me)

@puppo92

@puppo92

Slides

@puppo92

Prisma Series

Luca Del Puppo

@puppo92

Luca Del Puppo

Puppo_92

@puppo

GraphGL with Mercurius and Prisma, Love at First Sight

By Luca Del Puppo

GraphGL with Mercurius and Prisma, Love at First Sight

  • 4,287