GraphQL Cache Response Post Update

PhillipJacobs
Community Member

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

Labels (1)
0 Likes