AI WG ·

AI WG meetings · Jump to notes

Agenda

View agenda on GitHub

GraphQL AI WG — October 2025

Attendees

NameGitHubOrganizationLocation
Kewei Qu (host)@KeweiquMetaMenlo Park, CA, US
Jeff Auriemma@bignimbusApolloMonroe, CT, US
Benjie Gillam@benjieGraphileChandler's Ford, UK
Michael Staib@michaelstaibChilliCreamZurich, CH
Michael Watson@michael-watsonApollo GraphQLCalifornia, USA
Emily Goodwin@egoodwinxIndependentToronto, ON, CA
Akhil Sai Devunoori@akhilsai25ExpediaAustin, TX, USA
Rudra Srivastava@rudrasrivastavaBlockNew York, US
Dale Seo@DaleSeoApolloToronto, ON, CA
Thore Koritzius@ThoreKoritziusIndependentCologne, DE
Stephen Spalding@fotoetienneNetflixChattanooga, TN, US
Kenny Hammerlund@pinkmarlinIndependentHouston, TX, US
Joanna Roy@joannaroytrailMunich, Germany
Troy Kohler@trkohlerZalandoBerlin, DE
Alexandre Dias@alexdiasMetaLondon, UK
Andrei Bocan@abocan-atlAtlassianSan Francisco, CA, US
Abhinand C@abhinand-cStrollbyKerala, India IN
Ahmet Soormally@asoormWunderGraphLondon, UK
Jens Neuse@jensneuseWunderGraphKarlsruhe, DE
Uri Goldshtein@urigoThe GuildTel Aviv, IL
Ariana Eed@ariana0699IndependentAmsterdam, NL
Mark Larah@magicmarkYelp IncAustin, TX, US
Christian Ernst@cernst11Booking.comAmsterdam, NL
Pascal Senn@pascalsennChilliCreamZurich, CH

Agenda

  1. Agree to Membership Agreement, Participation & Contribution Guidelines and Code of Conduct (1m, Host)
  2. Introduction of attendees (5m, Host)
  3. Determine volunteers for note taking (1m, Host)
  4. Review agenda (2m, Host)
  5. Check for ready for review agenda items (5m, Host)
  6. Reminder: grants available for key initiatives (1m, Host)
  7. Brainstorm deliverables from this working group (10min, Kewei)
  8. Benchmark analysis of different LLMs capabilities at writing GraphQL operations. (15m, Alexandre)

Notes

View notes on GitHub

GraphQL AI WG Meeting Notes - October 2025

Watch the replays: GraphQL AI WG Meetings on YouTube

Agenda: https://github.com/graphql/ai-wg/blob/main/agendas/2025/10-Oct/23-graphql-ai-wg-october-2025.md

Notes

  • Discussing this document: GraphQL - community idea pad
  • GraphQL for service-to-service communication (East-West) - should this be the default?
  • Should marketing for GraphQL be less focused on UI?
  • [Mark] (1) auth is a big reason - facebook style of graph resolvers, thin wrapper over endpoints, endpoints do auth close to data egress, normalizes things, sign viewer objects, user impersonation as admin. People hack around that with auth directive at GraphQL layer
  • For us, our internal endpoints didn’t do that. If you have resolvers that do auth, in a normalized way, can be called by frontend or another service
  • (2) a historic thing - popular blog post from marc-andre: says backend doesnt get called
  • [Jeff in chat] Principled GraphQL also advises against using GraphQL in this manner (service-to-service), and says that Federation is the way to do that
  • [Watson] Service-service communication is typically done by backend developers – historically, the content isnt there; newer-to-graphql people fall into this world and are less likely to use graphql for service to service
  • [Kewei] (didn’t catch this - can someone fill in?)
  • [Uri] Using GraphQL for agents, other question is for specific types of use cases - ask an LLM to bootstrap an app, code, what do they choose to use?
  • Look at what they choose to use, and why
  • gRPC for example: more efficient transport - GraphQL not tied to transport, show GraphQL example. We understand that here, but not a lot of content there. I think Jens had a bunch of cool blog posts about that
  • Show WHY GraphQL is not tied to the transport.
  • [Andrei]
    (1) is server to server specifically related to AI? Seems like there is already a lot of tooling that is hard to compete with – why would someone work with graphql when they can use existing tooling. server to server and AI in graphql shouldn’t be joined at the hip
    (2) in graphql, you need to look at the payload etc to figure out what is being asked for – this adds a layer of complexity, why would someone want it
    (3) advantages of graphql don’t seem to translate to server-to-server
  • [Stephen] we have a paved path for various things – in service to service, the ‘paved path’ [at Netflix] is built around grpc so it doesnt make sense to use graphql here. On the one hand, not a lot has been invested into graphql tooling yet, so its not used much yet – but once more resources are invested it will get better.
  • [Mark, in chat] likely a framework issue rather than a spec thing:
    currently, (most) subgraphs /graphql endpoints expect only to be called by the router, and not directy from other services. Middleware needs to now handle this dual use case - logging, auth checks, persisted documents etc all need handling.
    To make ^ easier, is there some benefit to standardizing "which type of caller you" (encoded via a header or something)?
  • [Abhinand, in chat] But wouldn't directly calling the subgraph would lose the benefit of Federation?
  • [Jens] Customer prefer federated approach with query plan. Helps understand cost and which services are being called. Issuing lots of queries is an anti pattern, makes it harder to understand. @requires directive declares a dependency; declarative nature means compliance teams can determine service A depends on service B; if field is sensitive, we know this crosses a team/service boundary. Federated layer better than calling subgraphs directly. Auth logic in resolvers or deeper means it's really hard to determine which auth rules are hit by each user agent.
  • [Mark, in chat] which leads to another issue: by putting the router in the path of lots of service-to-service hops, it starts to look a lot more like envoy rather than a standard service. I see some folks have already started to deploy the router as a k8s operator, which is a good idea, and a good thing to promote as a supported/suggested way of deploying imo
  • [Kewei] CTA: Blog post series about server-to-server communication via GraphQL use cases
  • Action Item: Jens and Mark to collab on a blog post about GraphQL service-to-service communication
  • [Kewei] Next topic: authorizing GraphQL transactions from LLMs
  • Couple of challenges, Thore also presented on this at Conf
  • [Thore] Schema discovery - query only for the fields you need, recursively go in depth
  • How to limit context for how deep to fetch, don’t overload context, balance with need for precision
  • [Watson] One direction that GraphQL has to go in to survive. Operation generation is one side of this, also building graph in general. Resonated in audiences outside of GraphQL community: a graph representation of APIs and its value in agentic dev. Understanding graph is important. As a community - look at all the things that come back (like errors) - rethink them. They are written for humans, UIs
  • Doing simple things like a validate tool, the errors that come back from that, it’s good at fixing things. To Thore’s point - becomes a tool calling loop. Something to solve at the protocol level. MCP got to be bc they put lifecycle events around GraphQL execution - client event cycles. When connections closed, when tools get updated.
  • If we got an update on a PQ (trusted document, persisted operation, etc) - we gotta do something at the foundation level for schema operations
  • [Benjie, in chat] This is why GraphQL's declarative nature is so powerful - we can list all the errors in a single request.
    (Both validation wise, and execution wise.)
  • [Pascal] confirm what michael said. We have compared various LLMs and ways of doing this. Its surprisingly hard for LLMs to understand it at the moment. The only way that it works so far is to do a semantic search – going away from the schema was the only thing that worked.
  • Generating queries in clients, etc. LLMs are really bad at GraphQL at the moment
  • [Andrei] Q were trying to ask is how to put together a query thats actually valid. It feels like its a thing that an LLM should be able to do pretty well – eventually come to a solution as it iterates. Looking at the corpus for an LLM, where is a relationship diagram we can leverage so that LLMs understand the relationships. This feels like its a client-level concern. On a schema level, we need LLMs to know that relationships exist.
  • [Kewei] Slump happens when schemas are so large – this happens in production envs often.
  • [Jerry] Building generic MCP on top of sql. Customers have huge schemas/a lot of information in their databases. We came up with a minimal schema – then the model can slowly build out the full schema piece by piece. Built a set of generic tools that allow customers to describe generic entities. The way the schemas are designed today, they will very very quickly exceed token counts in the real world. Giant, does-it-all MCP servers are not feasible in real life. The schema needs some love. “Find a way to trickle it to the model”
  • [Abhinand] GraphQL federated system on backend. Working w MCP server. As little context as possible needed so complex instructions for serving one after th either as a sequence for agent. Too much data in context when we are passing GraphQL schema. Much higher cost than expected. Tried using Apollo MCP Server - tried customization. Custom directive for defining a tool for each query but could not use multiple agents w/ different descriptions. Tried setup using each agent - manually define tool, instructions, what it does, define operation file - that’s the compromise we’re doing. Idk if it’s best option - that’s the challenge. For some tools, fetch only a few fields, for others, other fields. Would be great if agent could be dynamic based on prompt
  • [Thore] validate whether query is correct from LLM. Good error description on a token-level, issuing which fields went wrong. Structured output for only those tokens. Provide additional information on errors with type details if helpful to avoid additional introspection calls
  • [Jens] (1) Heavily investing into the topic of operations. Problem with documentations; descriptions, etc are all written for developers. You need to tell more information to an LLM that you don’t need to tell to humans. (2) if you have a field on multiple types thats very similar, there may be two paths to the same info – the LLM might take the wrong path, but it wouldnt know it was wrong. We need to be very careful. Mostly, generating queries is not really an LLM problem / its usually the last step.
  • [Mark, in chat] our schema, as I the case too I suspect with most non-public schemas is: the wild west
    whilst we strive for a fully normalized deduplicated schema, inevtiably duplications sneak in, bad patterns profiliterate, and the core types and root query type gets overloaded with too much "juicy" looking fields for agents that get misleading.
    I agree with Jerry ealrier - it's too risky to just give it to the LLM and say "go have fun" at runtime.
    LLMs compiling trusted documents at dev time (which get reviewed)++
    (and i'm curious if/how we can improve on that)
  • [Troy, in chat] Should we enable some descriptors / hints for llms on schema level? So they prioritise the information from there
  • [Kewei] main points: schema reduction, query construction

Zoom summary

View zoom summary on GitHub

Meeting Summary for AI WG

NOTICE: This summary was auto-generated by Zoom's "AI". AI-generated content may be inaccurate or misleading. Always check for accuracy. If in doubt, please consult the meeting recording at https://youtube.com/@GraphQLFoundation/playlists

  • Meeting start: 2025-10-23T17:25:44Z
  • Meeting end: 2025-10-23T18:35:29Z
  • Summary start: 2025-10-23T17:30:25Z
  • Summary end: 2025-10-23T18:33:08Z

The GraphQL working group held its first meeting to establish its foundation and discuss the intersection of GraphQL and AI technologies. The group explored various aspects including service-to-server communication, tooling improvements, and the potential of LLMs in generating and understanding GraphQL queries. They concluded with plans to create benchmark datasets, publish blog posts on different use cases, and continue discussions on GitHub to advance the integration of GraphQL and AI technologies.

Next Steps

  • Jens to write a blog post about GraphQL for server-to-server communication use cases.
  • Benjie to provide support and guidance for the blog post writing process.
  • kqu and Alexandre to publish the fake schemas created for LLM benchmarking.
  • kqu and Alexandre to publish the set of 16 questions used for benchmarking LLMs on GraphQL query generation.
  • Working group members to continue discussions on schema reduction, error handling, and query construction using GitHub issues.

Summary

GraphQL Working Group Kickoff

The first meeting of the GraphQL working group was hosted by Koei, who introduced the purpose of the group and outlined the membership agreement and guidelines. Attendees were asked to introduce themselves and explain their reasons for joining the working group, with Koei starting the introductions and passing to Jeff. The meeting focused on establishing the group's foundation and setting expectations for future discussions.

GraphQL AI Integration Strategies

The GraphQL AI Working Group meeting began with introductions from various members, including Jeff Auriemma from Apollo, Benjie, Michael Staib from ChiliCream, and others representing different companies and backgrounds in GraphQL and AI. The group discussed the synergy between GraphQL and AI, exploring how LLM-powered experiences can complement GraphQL. They also touched on the need for better tooling and best practices for the community. The conversation ended with a reminder about open grants for key initiatives, including AI, and an agenda item on discussing GraphQL for server-to-server communication, with a focus on making it less focused on UI and more suitable for service-to-service interactions.

GraphQL for Service-to-Service Communication

The team discussed the use of GraphQL for service-to-service communication, particularly in AI products. Mark explained that they are unlocking GraphQL for service-to-service communication to improve authentication and authorization. He also mentioned a blog post by Andre about the "sweet spot" for GraphQL, which suggested that service-to-service communication was not a primary use case. Michael Watson highlighted the importance of UI connection and noted that many backend developers may not be familiar with GraphQL clients. The team agreed to explore why GraphQL is chosen over other options like GRPC for service-to-service communication, with Uri suggesting they look at current practices and LLM-generated code examples.

GraphQL for Server-to-Server Communication

The team discussed the use of GraphQL for server-to-server communication, with Andrei and Stephen expressing that while GraphQL has advantages for client-to-server interactions, it may not be the best tool for microservice communication due to existing tooling and complexity. Jens highlighted the benefits of Federation, including declarative authorization and improved auditability through schema dependencies. The group agreed to create a series of blog posts to explore different use cases for GraphQL in server-to-server communication, with Jens volunteering to contribute. They also touched on the topic of LLM authorizing GraphQL-related code, though this was not fully explored in the meeting.

Enhancing LLMs with GraphQL Schemas

The meeting focused on challenges and potential solutions for using Large Language Models (LLMs) with GraphQL schemas. Participants discussed the limitations of LLMs in understanding and generating GraphQL queries, with Pascal noting that leaving the schema for semantic search led to better results. Michael Watson emphasized the need for improvements at the protocol level, suggesting that trusted documents and lifecycle events could enhance query generation. Jerry highlighted the practical challenges of working with large schemas in production, advocating for a more structured approach. The group also touched on the importance of error messages and the need for better documentation that aligns with LLM capabilities. The conversation ended with a suggestion to enable descriptors or hints for LLMs on the schema level to prioritize relevant information.

GraphQL Query Generation Benchmarking

The working group discussed benchmarking different language models' ability to generate GraphQL queries. Alexandre presented results showing that GPT-4.1, GPT-5, and Claude all performed well, with specific prompts yielding the best results. The team plans to publish a benchmark dataset containing complex schemas and user queries for community evaluation. They aim to validate generated queries against schemas and assess field accuracy. The group agreed to continue discussions on GitHub and to explore non-LLM query construction methods.