GraphQL Cache Response Post Update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a server side cache for GraphQL queries? We use GraphQL API to get initial data list, made some updates using REST API and then when we rerun the graphQL statement the changes are not reflected.
For example with module item external URLs:
query listCourseModuleItems($courseId: ID!, $nextCursor: String!) {
course(id: $courseId) {
modulesConnection(first: 50, after: $nextCursor) {
nodes {
moduleItems {
_id
content {
... on ExternalTool {
url
}
}
}
_id
}
pageInfo {
endCursor
hasNextPage
startCursor
}
}
}
}
If you use the REST API method to check will see the data changes, /api/v1/courses/67346/modules?include[]=items