Open
Conversation
|
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 0 new, 8 changed, 0 removedBuild ID: 8d84e66893719eda5df1b2fd URL: https://www.apollographql.com/docs/deploy-preview/8d84e66893719eda5df1b2fd |
8d7be3a to
adbc5f6
Compare
commit: |
Contributor
size-limit report 📦
|
phryneas
reviewed
Aug 22, 2025
adbc5f6 to
418df18
Compare
a58e19a to
3cbe6a6
Compare
0e533af to
a6ca40f
Compare
GrowingSchema now accepts a base schema to build on top of.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds new packages to the Apollo Client repo for AI Mocking.
@apollo/client-ai— This package provides tooling to mock API responses using AI@apollo/client-ai-vercel-adapter— This package provides a Vercel SDK adapter to use with the@apollo/client-aitools. This separation ensures the core AI tools are provider agnostic.Use
AIMockedProviderYou can set up your client app to use mock data by using the
AIMockedProvider(similar to theMockProvider, only without static mocks):This provider uses the
AIMockLinkto intercept the GraphQL operations performed by Apollo Client and instead fulfill them using AI.AIMockLinkYou can plug
AIMockLinkdirectly into your Apollo Client as well, bypassing theAIMockedProvidercomponent:VercelAIAdapterThe
VercelAIAdaptercreates an AI adapter for the Vercel AI SDK. It supports choosing the model you want to use for generating mock data:When
modelis provided as a string, the user will need to refer to the Vercel AI SDK provider docs to see what the ENV variable for the specific API key for their provider needs to be. For example, OpenAI looks for theOPENAI_API_KEYenv variable:Users can also configure a specific provider object and pass it in, which would allow them to more directly configure the API key as an option. For example: