bchn's profile picture.

Bai Chan Kheo

@bchn

Bai Chan Kheo reposted

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=9mbWNV…

eddeee888's tweet card. Let's Pair: GraphQL Codegen Federation Support (Part 1)

youtube.com

YouTube

Let's Pair: GraphQL Codegen Federation Support (Part 1)


Bai Chan Kheo reposted

🚀 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/grap…


Bai Chan Kheo reposted

Happens every time.

eddeee888's tweet image. Happens every time.

Bai Chan Kheo reposted

🔋 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/grap…


Bai Chan Kheo reposted

✨ 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

eddeee888's tweet image. ✨ 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 reposted

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/grap…

eddeee888's tweet image. 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/grap…

I entered the Moulin Rouge! The Musical $30 Lottery on @TodayTix! Enter here: todaytix.com/melbourne/show…


Bai Chan Kheo reposted

#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…

the-guild.dev

The complete GraphQL Scalar Guide | Hive

Knowing how native and custom GraphQL Scalar works enables building flexible and extendable GraphQL schema.


Bai Chan Kheo reposted

🚀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/grap…


Bai Chan Kheo reposted

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 👇🧵

eddeee888's tweet image. 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 reposted

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/gra… This allows us to type Scalars more expressively and correctly moving forward. Example configs in thread 🧵


Bai Chan Kheo reposted

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 reposted

🛠 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/grap…

eddeee888's tweet image. 🛠 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/grap…

Bai Chan Kheo reposted

🎉 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 reposted

🆕 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…


United States Trends

Loading...

Something went wrong.


Something went wrong.