feat: mutations and queries for shortcode management
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { gql } from "@urql/core"
|
||||
import { GraphCacheUpdaters, MyTeamsDocument } from "../graphql"
|
||||
|
||||
export const updatesDef: GraphCacheUpdaters = {
|
||||
@@ -168,5 +169,19 @@ export const updatesDef: GraphCacheUpdaters = {
|
||||
)
|
||||
}
|
||||
},
|
||||
createShortcode: (result, _args, cache, _info) => {
|
||||
cache.writeFragment(
|
||||
gql`
|
||||
fragment _ on Shortcode {
|
||||
id
|
||||
request
|
||||
}
|
||||
`,
|
||||
{
|
||||
id: result.createShortcode.id,
|
||||
request: result.createShortcode.request,
|
||||
}
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user