Skip to content

Conversation

@unrevised6419
Copy link
Contributor

@unrevised6419 unrevised6419 commented Dec 1, 2025

Description

Add a note that when using Apollo Client, InMemoryCache needs to be configured to consider documentId instead of id for the data to be normalized in cache

An example repo https://github.com/unrevised6419/example-strapi-apollo-graphql/blob/e93a44ec8e5900e1578e844edc9f793907f7d7eb/web/src/main.tsx#L7-L13

This is clearly visible in the Apollo Devtools

Before After
image image

Related issue(s)/PR(s)

Closes #2379

@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
documentation Ready Ready Preview Comment Dec 1, 2025 0:45am

@pwizla pwizla added this to the 6.12.1 milestone Dec 1, 2025
@pwizla pwizla added pr: chore source: CMS contribution PRs that are part of the Documentation Contribution Program labels Dec 1, 2025
@pwizla
Copy link
Collaborator

pwizla commented Dec 1, 2025

Hi @unrevised6419 and thanks for this new contribution! (and thank you for closing #2379 , it seems I completely forgot about it 🙈 )

The PR is now approved, merged, should be live on docs.strapi.io in a few minutes, and will be mentioned in the next weekly snapshot release.

Our Strapi Shop partner received your goodies order, it will be on its way soon. However, it seems we have some issues automatically creating your account for the Docs Contribution Program. Creating an account would allow you to accumulate points so you can later order bigger goodies. Would you mind sending your email address to megane.lacheny@strapi.io so we can create an account on your behalf?

@pwizla pwizla merged commit 053a1ff into strapi:main Dec 1, 2025
19 checks passed
@unrevised6419 unrevised6419 deleted the docs/graphql-apollo-cache branch December 1, 2025 13:51
@meganelacheny
Copy link
Collaborator

Thank you @unrevised6419, I just updated your Strapi Shop account with the right number of points that you've earned with you 2 contributions! You should be able to login with the address you've shared in your message!

Again, thank you for contributing 🙌
And if you have any issues with the Strapi Shop or the Contribution Program, you have my email address so please let me know and I'll help 😊

@unrevised6419
Copy link
Contributor Author

Thanks @pwizla, @meganelacheny, I received the invite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution PRs that are part of the Documentation Contribution Program pr: chore source: CMS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Add note for @strapi/plugin-graphql and @apollo/client consumers about InMemoryCache

3 participants