Suppose I have a simple system of categories and articles, and there's a path like this to get a list of all the articles in a specific category.
categoriesById[{integers:ids}].articles[{ranges:rows}]
Now, that route is hard-coded to sort the articles by newest first, so when I add a new article, I need to (I assume) invalidate all the articles within a category because I want article 0 to be the new article.
Is there a short-hand way to invalidate the entire range of articles within a category, or do I need to invalidate every article under categoriesById explicitly, or, is there a way to splice an item into a list in the JSONGraph?
You can use a range object.
Note that you may want your
calltu return more information about the newly created article or the updated number of articles. Here it returns nothing but the fact that the entirearticlesarray must be erased from the client's cache. To return more information, you can add path/value pairs to the returned array.