keystone
keystone copied to clipboard
Add the ability to send additional Apollo links to the admin ui
This was useful for the ability to add headers, in my case authorization, to every request to the server
🦋 Changeset detected
Latest commit: 077b6b400595cb159ae0dcc852eb3b1814cab54f
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @keystone-6/core | Minor |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/65wzcRFTSwyEVSFH5nfEmnvAqYvj
✅ Preview: https://keystone-next-docs-git-fork-genie-team-master-keystonejs.vercel.app
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 077b6b400595cb159ae0dcc852eb3b1814cab54f:
| Sandbox | Source |
|---|---|
| @keystone-6/sandbox | Configuration |
Hi @acoreyj thanks for the PR!
Something like this would also be handy with subscriptions (#7722) where we needed to instead create a 2nd Apollo Client.
Not sure how using from() impacts subscriptions though. For subscriptions you use split() and set mutations and queries down one link and subscriptions down another. I would be more inclined to have apolloLink and let the end developer do the from() or split() and just swap out the default link with what is provided in adminConfig.apolloLink. Would replacing the link remove the need for the adminConfig.providerLogic in your use case?
It would be great to see an example of using adminConfig.providerLogic
Thanks!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| keystone-next-docs | ✅ Ready (Inspect) | Visit Preview | Nov 2, 2022 at 1:39AM (UTC) |