Bai Chan Kheo retweeted
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 youtube.com/watch?v=9mbWNVyI…
Bai Chan Kheo retweeted
🚀 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: github.com/eddeee888/graphql…
Bai Chan Kheo retweeted
🔋 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: github.com/eddeee888/graphql…
Bai Chan Kheo retweeted
✨ 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
Bai Chan Kheo retweeted
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: github.com/eddeee888/graphql…
I entered the Moulin Rouge! The Musical $30 Lottery on @TodayTix! Enter here: todaytix.com/melbourne/shows…
Bai Chan Kheo retweeted
#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:
the-guild.dev/blog/the-compl…
Bai Chan Kheo retweeted
🚀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
github.com/eddeee888/graphql…
Bai Chan Kheo retweeted
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 👇🧵
Bai Chan Kheo retweeted
I'm VERY excited that the PR to improve @GraphQL Scalar types for GraphQL Code Generator is now merged and will be released ✨soon✨:
github.com/dotansimha/graphq…
This allows us to type Scalars more expressively and correctly moving forward.
Example configs in thread 🧵
Bai Chan Kheo retweeted
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
Bai Chan Kheo retweeted
🛠 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: github.com/eddeee888/graphql…
Bai Chan Kheo retweeted
🎉 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 melbjs.com
Bai Chan Kheo retweeted
🆕 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:the-guild.dev/graphql/codege…









