Set key-value for caching. Write a middleware that will check for mutations. If incoming request is a mutation, then take the corresponding query and remove it from the cache. For example, if a strain is updated with a mutation, then the results of a query for that strain ID should be removed from the cache and replaced with the updated version.
Set key-value for caching. Write a middleware that will check for mutations. If incoming request is a mutation, then take the corresponding query and remove it from the cache. For example, if a strain is updated with a mutation, then the results of a query for that strain ID should be removed from the cache and replaced with the updated version.