Skip to content

Instantly share code, notes, and snippets.

@DuncanFaulkner
Last active Mar 20, 2021
Embed
What would you like to do?
refechQuery
this.apollo.mutate<{ createCourse: Course }>({
mutation: CREATE_COURSE_MUTATION,
variables: {
name: course.name,
description: course.description
} as Course,
refetchQueries: [
{
query: gql`
query updateCache(...){
...
}
`
}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment