You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Fix the MatrixUser cache in urql
This commit is contained in:
@ -27,6 +27,10 @@ import schema from "./gql/schema";
|
|||||||
|
|
||||||
const cache = cacheExchange({
|
const cache = cacheExchange({
|
||||||
schema,
|
schema,
|
||||||
|
keys: {
|
||||||
|
// This is embedded in the `User` entity and has no ID
|
||||||
|
MatrixUser: () => null,
|
||||||
|
},
|
||||||
updates: {
|
updates: {
|
||||||
Mutation: {
|
Mutation: {
|
||||||
addEmail: (result, args: MutationAddEmailArgs, cache, _info) => {
|
addEmail: (result, args: MutationAddEmailArgs, cache, _info) => {
|
||||||
|
Reference in New Issue
Block a user