Curious about Apollo Federation and GraphQL Codegen?
I'm starting a YouTube series to share my understanding of Federation and upcoming related changes in GraphQL Codegen.
First episode: key directive and mappers support https://t.co/5HyGQzFbcs
🚀 GraphQL Codegen Server Preset just got a lot faster and better in v0.11!
⚡️ Improved change detection logic to reduce generation time, ~50% reported in some medium-large codebases
🛠️ Added better support for Apollo Federation
Full changelog: https://t.co/etuqSL0ak0
🔋 GraphQL Codegen Server Preset v0.10 now does more OOTB:
- Enum resolver generation & static analysis
- Better integration with codegen e.g. allowing custom naming convention
- Merging multiple schema files into one
More details: https://t.co/VULPctTbUj
✨ GraphQL Codegen Server Preset v0.9 is here! With highly requested features: minimal generation and smarter wireup
- `resolverGeneration:'minimal'`: only generates root-level resolvers
- resolvers auto wireup: detects files at expected location to generate content and wire up
Do you find GraphQL Code Generator Server Preset generating unused files in your workflow?
A lot of users do (me included 🙋♂️)
In Server Preset v0.8, resolverGeneration option can be used to choose resolvers/files to generate - or not!
More details here: https://t.co/PaOqrGzS3J
#GraphQL scalar is an essential concept. Knowing how to use scalars correctly unlocks the ability to build robust and extendable schemas.
Read about the native scalar behaviours, creating custom scalars and scalar dev tools on @TheGuildDev blog:
https://t.co/FP2lHNV2Am
🚀GraphQL Codegen Server Preset v0.5 is about scalars and abstract types:
- Add scalarsOverrides option to customise scalars’ type and implementation
- Use correct input/output types for ID scalar
- Prefer __typename over __resolveType for abstract types
https://t.co/JFL48ziOoc
Something I’ve learnt recently about GraphQL in Node.js:
If resolvers return `__typename` for union members/interface implement types, then `__resolveType` and `__isTypeOf` are not required🤯
This simplifies resolvers implementation a lot!
#GraphQL Codegen example config 👇🧵
I'm VERY excited that the PR to improve @GraphQL Scalar types for GraphQL Code Generator is now merged and will be released ✨soon✨:
https://t.co/JwoXprPWxt
This allows us to type Scalars more expressively and correctly moving forward.
Example configs in thread 🧵
So much talk about how thankless is open source work
But it is also worth sharing that every once in a while you find real angels in the community
@eddeee888 and the work that he is doing on Codegen resolvers is top on that list
🛠 GraphQL Codegen Server Preset v0.4 focuses on DX & integration:
- Simpler setup with better defaults & TypeScript support w/ defineConfig
- Integrates with module-based libs like graphql-modules w/ typeDefsFileMode & resolverMainFileMode
Release: https://t.co/SBs4byea7v
🎉 3 weeks to go! Join us Wed April 12, 6pm at Culture Amp.
On Endings: Why and How We Retired Elm at Culture Amp
—@sentience
TypeScript AST: Concepts and Applications
—@eddeee888
Supabase: It’s Just Postgres
—@lxunos
✍️ Register now at https://t.co/cx2ZGaVPH6
🆕 GraphQL Codegen Server Preset v0.3 has a new feature: auto object field resolvers
🤖 Incompatible resolvers are automatically generated when using mappers
This eliminates missing resolver errors at runtime w/o having to implement all resolvers!
Guide:https://t.co/YasrmoYauO