Bai Chan Kheo (@bchn) header
Bai Chan Kheo (@bchn) profile picture
Melbourne, Australia
Joined May 2009
Photo by Bai Chan Kheo (@bchn)Photo by Bai Chan Kheo (@bchn)Photo by Bai Chan Kheo (@bchn)
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…
5
2
8
1,954
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…
5
2
11
1,300
Bai Chan Kheo retweeted
Happens every time.
1
4
9
570
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…
6
1
9
1,684
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
4
10
697
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…
1
8
12
787
I entered the Moulin Rouge! The Musical $30 Lottery on @TodayTix! Enter here: todaytix.com/melbourne/shows…
4
29
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…
2
7
1
25
2,055
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…
8
1
16
1,023
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 👇🧵
1
4
11
1,144
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 🧵
1
5
1
26
4,600
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
2
3
17
1,001
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…
6
9
1,185
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
1
2
9
1,331
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…
16
23
1,771