r/graphql

▲ 20 r/graphql

Hi everyone, I'm Eddy from the GraphQL Codegen team 👋

We are super excited to announce we released a big update to client plugins ( typescript-operations and client-preset ) focused on making the generated types actually nicer to work with day-to-day.

What changed:

  • Only generate the types you actually use → less noise in your output
  • Simplified config → fewer options, more focused ones
  • Better defaults → less setup to get started

We also support a better migration path from Apollo Tooling

This release is based heavily on community feedback, so if you’ve had pain points with Codegen before, I’d really love to hear if this improves things (or what’s still missing).

v6 Migration guide: https://the-guild.dev/graphql/codegen/docs/migration/operations-and-client-preset-from-5-0

Apollo Tooling migration guide: https://the-guild.dev/graphql/codegen/docs/migration/apollo-tooling

u/eddeee888 — 8 days ago

Is GraphQL the Panacea for Agentic AI?

Just published this post - Overall I think GraphQL is a great fit, but maybe not the be-all and end-all of APIs for AIs. Let me know what you think.

magiroux.com
u/XuoriG1 — 6 days ago

Query/Mutation generation using AI

Hi, I am trying to figure out a way to create accurate queries/mutation on the fly using AI (OpenAI models).

My goal is to be able to generate these queries and mutations at runtime based on user prompts without loading the whole schema into the context.

I have tried using codegen to validate queries/mutation, provide example but the hard part is building context. I was thinking perhaps use of the descriptions in schema itself to create a vector DB of sort but I am kinda stuck.

Any thoughts? Thanks!

reddit.com
u/S123Peel — 3 days ago