Maxime Naulleau
1y ago
3 GraphQL tools making SaaS development easier
I built great SaaS products with startups using GraphQL. They all have different takes on their tool choices. Some have real advantages, while others fall into the legacy box.
Here's my ideal GraphQL stack to build a new SaaS.
🧵
1/6
Maxime Naulleau
1y ago
1. No performance compromise with data loaders
Data loaders let "merge" GraphQL field requests into a single call to the database. That's performance gain. Having field resolvers no longer means multiple queries to the database.
Data loaders make GaphQL benefits cheaper.
2/6
Maxime Naulleau
1y ago
2. Centralized GraphQL permissions
GraphQL Shield is the best pick of the startups I joined:
• expressive - permission code nicely shows the developer's intent
• easy to add permission rules
• permissions are centralized
It's a good choice to set up permissions fast.
3/6
Maxime Naulleau
1y ago
3. Client SDK generation
GraphQL Codegen is the go-to choice for two use cases:
• generating a frontend SDK for the backend API (standard)
• generating a client SDK for third-party API - CMS, etc. (missed)
GraphQL Codegen reduces bugs naturally.
4/6
Maxime Naulleau
1y ago
If you liked this thread and are interested in SaaS, you can:
• share this thread
• or follow me at @MaximeNaulleau for more content. I publish 4x per week.
5/6
Maxime Naulleau
1y ago
The TL;DR:
1. No performance compromise with data loaders
2. Centralized GraphQL permissions with GraphQL Shield
3. Client SDK generation with GraphQL Codegen
These are simple to set up and worth the benefits.
6/6